Technical Discussion :: C
7. What is the difference between declaring a variable and defining a variable?
Answer:
Declaring a variable is initializing a variable where as defining a variable is defining what variables you are initialized.
Asked In :: TCS Capgemini
Declaring a variable is initializing a variable where as defining a variable is defining what variables you are initialized.
Declaring a variable means giving some initial value to the variable , whereas defining a variable means giving memory to the variable in the program .