what is the difference between declaration ,defenetion and
initialization of a variable?
Answer Posted / sakthi sudhan
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 ? | 1 Yes | 8 No |
Post New Answer View All Answers
How can I dynamically allocate arrays?
What is a floating point in c?
What are the types of data files?
What does c value mean?
Mention four important string handling functions in c languages .
why wipro wase
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
What standard functions are available to manipulate strings?
Can we declare variable anywhere in c?
Explain how can I prevent another program from modifying part of a file that I am modifying?
When was c language developed?
Why double pointer is used in c?
Write a progarm to find the length of string using switch case?
Give the rules for variable declaration?
Which is better malloc or calloc?