What is function prototyping ?

What is function prototype in C ?

Function prototype is a function declaration which doesn’t include body , but does satisfies return type and arguments. Function definition does satisfy the body too. A Function prototype can be thought as specifying its interface.

In function prototyping and defining arguments are optional.

Function prototype for factorial function.

int fact(int n);

 

%d bloggers like this: