Function declaration

Function declaration:  function declaration is must before call the function. And it divides into four parts as follows

a.      Return-type

b.      Function-name

c.       Parameter

d.       semicolon

The above three parts of the function declaration are the same and the remaining part is semicolon. It is simply used at the end of the function declaration to terminate it.

Syntax:            return-type function-name(parameters);

e.g       int disp(int a, float b);

Posted in C

Leave a Reply

Your email address will not be published. Required fields are marked *