General form of function in C

return_type function_name( parameter list )
{  
      body of the function;
}
  • Return Type: Data type of the return value of the function.
  • Function Name: The name of the function and it is important to have a meaningful name that describes the activity of the function.
  • Parameters: The input values for the function that are used to perform the required action.
  • Function Body: Collection of statements that performs the required action.
Posted on by