Question: what is the difference between function declaration and function prototype?
Answer: A function declaration is a declaration of a function. In other words a function declaration declares the name of the function and the type of what it returns. You must declare an identifier before you can use it. ... A function prototype is a declaration of a function that declares the types of the function's parameters.