Computer Science, asked by CARELESSGIRL, 1 year ago

What is the explanation for prototype function in C?

Answers

Answered by liza10987654321
3

♥♥♥ Hey ♥♥♥

Function prototype in C is used by the compiler to ensure whether the function call matches the return type and the correct number of arguments or parameters with its data type of the called function.

In the absence of the function prototype, a coder might call function improperly without the compiler detecting errors that may lead to fatal execution-time errors that are difficult to detect.

✌✌✌✌✌✌✌✌✌


lokesh791: hello
Answered by Anonymous
2

A function prototype is simply the declaration of a function that specifies function's name, parameters and return type. It doesn't containfunction body. A function prototype gives information to the compiler that the functionmay later be used in the program.

Similar questions