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 difference between c &c++?
What is the purpose of 'register' keyword?
What does sizeof function do?
Describe the modifier in c?
What is local and global variable in c?
What does return 1 means in c?
Explain how do you determine a file’s attributes?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
How can I pad a string to a known length?
main() { printf("hello"); fork(); }
What are structure members?
What is the symbol indicated the c-preprocessor?
Ow can I insert or delete a line (or record) in the middle of a file?
why we wont use '&' sing in aceesing the string using scanf
code for quick sort?