Q:

WHAT IS THE DIFFERENCE BETWEEN VARIABLE DECLARATION AND VARIABLE DEFINITION IN C?

belongs to collection: C INTERVIEW QUESTIONS AND ANSWERS

0

WHAT IS THE DIFFERENCE BETWEEN VARIABLE DECLARATION AND VARIABLE DEFINITION IN C?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Variable declaration tells the compiler about data type and size of the variable. Whereas, variable definition allocates memory to the variable

Variable can be declared many times in a program. But, definition can happen only one time for a variable in a program.

Variable declaration is for assignment of properties and identification to a variable. Whereas, variable definition is for assignments of storage space to a variable

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C INTERVIEW QUESTIONS AND ANSWERS

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
WHAT ARE THE DIFFERENT TYPES OF VARIABLE IN C?... >>
<< CAN VARIABLE NAME START WITH NUMBERS?...