Interviews Questions, Algorithms, Aptitude, C Interview Program, C Theory Question, Aptitude Tricks, Test Series,

Tuesday 26 March 2019

Prototype of a function

The prototype of a function

Declaration of the function is known as the prototype of a function. The prototype of a function means

(1) What is the return type of function?

(2) What parameters are we passing?

(3) For example, the prototype of the printf function is:

int printf(const char *, …);

i.e. its return type is int data type, its first parameter constant character pointer and second parameter is ellipsis i.e. variable number of arguments.

0 comments:

Post a Comment