Computer Science, asked by singhmasuta5657, 9 months ago

Explain in brief the purpose of function prototype with the help of a example

Answers

Answered by varadhabala29
0

Answer:

A function is a set of instructions that is used to perform a certain task. For example, if you have to print the area of a circle with many radii, you can use a function to calculate the area of circle with the radius as its parameter. A prototype is essential for a function as it tells the compiler the details of the function, such as the function name, how many arguments are passed to the function and what is the data type of these arguments.

Similar questions