what is the difference between declaration and definition of a variable /function
Answers
Answered by
6
Answer:
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. Declaration declares an identifier and its type. ... In other words a function declaration declares the name of the function and the return type.
HOPE IT HELPS YOU....
HAPPY DIWALI TO ALL
Similar questions
English,
6 months ago