Functions in C can also have parameters (arguments) and return values.
The return type specifies the type of value the function will return.
Here's the basic syntax for a function with arguments and a return value:
return_type functionName(parameter1_type parameter1_name, parameter2_type parameter2_name, ...);
Here's an example of a function with arguments that calculates and returns the sum of two integers:
Program.c
Output:
Sum: 12
Resources :
Featured
Special title treatment
With supporting text below as a natural lead-in to additional content.