Question: what is the difference between variable definition and declaration?
Answer: i.e., declaration gives details about the properties of a variable. Whereas, Definition of a variable says where the variable gets stored. ... Declaration of a function provides the compiler the name of the function, the number and type of arguments it takes and its return type.