what is the difference between declaration ,defenetion and
initialization of a variable?
Answer Posted / gg
As i know.....
Definition is one which allocates memory.
Ex: int x;
Declaration never occupy any memory space.
Ex:Function prototype declarations such as....
int func(int,int);
Initialization: If any variable assigned with some value at
time definition itself is called initialization.
Ex:int x=0;
| Is This Answer Correct ? | 35 Yes | 7 No |
Post New Answer View All Answers
Explain how to reverse singly link list.
How can I find out if there are characters available for reading?
What does a pointer variable always consist of?
code for replace tabs with equivalent number of blanks
string reverse using recursion
How can I access an I o board directly?
What does %p mean?
What's the total generic pointer type?
What is the use of putchar function?
What is a #include preprocessor?
What is a ternary operator in c?
How #define works?
What is a header file?
What is the modulus operator?
What is the difference between the = symbol and == symbol?