Question: what is the difference between declaration and definition?
Answer: Difference between Definition and Declaration. ... i.e., declaration gives details about the properties of a variable. Whereas, Definition of a variable says where the variable gets stored. i.e., memory for the variable is allocated during the definition of the variable.