Functions in C can have parameters (arguments) without returning any value.
These types of functions are declared with a void return type, indicating that they do not return any value.
Here's the basic syntax for a function without a return value but with arguments:
void functionName(parameter1_type parameter1_name, parameter2_type parameter2_name, ...);
Here's an example of a function without a return value that takes two integers as arguments and prints their sum:
Program.c
Output:
Sum: 12
Resources :
Featured
Special title treatment
With supporting text below as a natural lead-in to additional content.