- 2

What is the difference between declaring and defining a variable in c?

27th Aug 2021, 9:38 PM
Onigiri raijin
2 Respuestas
+ 1
Defining makes something constant and it becomes global like a function, a variable... Declaring can be also constant but you can change the value of a variable is declared.
31st Aug 2021, 11:54 PM
mesarthim
mesarthim - avatar
0
declaration: int a; definition:a=1;
28th Aug 2021, 12:01 AM
Khentit Nadji Sabri