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
What is the explanation for prototype function in c?
difference between object file and executable file
Differentiate between calloc and malloc.
Explain what are compound statements?
What is the difference between local variable and global variable in c?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is union and structure in c?
What does node * mean?
Why enum is used in c?
What is the difference between #include
what is the function of pragma directive in c?
What is pass by value in c?
What is the right way to use errno?
What are the advantages of using linked list for tree construction?
What's the total generic pointer type?