Question: what is the difference between declaration and definition of a variable mcq?
Answer: you can define a variable only one time but you can declare it as many time you want. For a variable, declaration means just stating its data type along with giving it name for memory allocation; while definition means giving the value of that variable.