what is the difference between declaration ,defenetion and
initialization of a variable?
Answer Posted / siddiqui mohd. faisal
declaration : int a;
declaration means here a is declared as integer variable
initialization : int a = 5;
initialization is whatever you have declared give that
variable some value
definition : int a;
definition is whatever variable you have declared give it's
datatype as here a is declared as integer variable
| Is This Answer Correct ? | 32 Yes | 21 No |
Post New Answer View All Answers
Explain what is the best way to comment out a section of code that contains comments?
What are the types of variables in c?
Can you pass an entire structure to functions?
What is the difference between the local variable and global variable in c?
What is a 'null pointer assignment' error?
Does free set pointer to null?
What is use of integral promotions in c?
Why is c called a structured programming language?
How do you list a file’s date and time?
What is a buffer in c?
how to write a c program to print list of fruits in alpabetical order?
i want to know the procedure of qualcomm for getting a job through offcampus
write a c program to find the sum of five entered numbers using an array named number
What is function definition in c?
what is reason of your company position's in india no. 1.