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 are the features of c languages?
Describe the steps to insert data into a singly linked list.
What is the best way to comment out a section of code that contains comments?
Explain what is output redirection?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?
What are types of structure?
What is the purpose of realloc()?
Explain how can you avoid including a header more than once?
What are static variables in c?
What are the benefits of organizational structure?
Can the size of an array be declared at runtime?
What is the difference between text and binary modes?
What are the data types present in c?
Is c easier than java?
What are global variables and how do you declare them?