Explain Function declaration and Function Definition with example

Explain Function declaration and Function Definition 

Function declaration

Like variables, all functions in C program must be declared, before
they are invoked. A function declaration also known as function
prototype consist of four parts :
Function type
Function name
Parameter list
Terminating semicolon
They are coded in the following format :
Function-type function-name (parameter list);


Function Definition

A function definition, also known as function implementation shall include the following elements :
Function name
Function type
List of parameters
Local variable declaration
Function statements
A return statement
All six elements are grouped into two parts :
Function header
Function body

Labels: