Formal parameters of a function in C

A formal parameter actually works just like a local variable that is inside a code block. Sometimes a function has to use arguments in a C program. Variables that accept the value of these arguments have to be declared. These variables which accept the values of arguments are known as the formal parameters. For Example:

int words(char *a, char b)



if(*a==b) return 3;

else a++;

return 4;


Here a and b are the parameters.

Leave a Reply