Question: what is the difference between function declaration and definition?
Answer: In other words a function declaration declares the name of the function and the return type. You must declare an identifier before you can use it. ... A Function definition defines the function itself. It also acts as a declaration, and if the declaration includes the types of its parameters, a prototype as well.