Syntax of Function and function parameter declaration in C

Syntax of a function:

return_type function_name(parameter_list)


body of function


Here, return type: Type of data (except array) that function returns.

Function parameter declaration: In C, all function parameters are declared individually.

Syntax of function parameter declaration:

f(type variable_name1, type variable_name2, . . . , type variable_nameN)


f(int a, int b, int c)

Leave a Reply