Is there a difference between defining a variable in C and assigning a value to a variable in C?
I know that declaring a variable simply means telling the name and its type like int a
.
On the other hand defining a variable means telling the compiler its value.
So in my understanding there are the following associations between these concepts:
- Declaration - Name + Type (of an identifier)
- Declaration - Value (of an identifier)