what is the difference between declaration ,defenetion and
initialization of a variable?
Answer Posted / prakash
Declaration: int a;(does not allocate memory)
Initialisation: a=5;(value is assigned for 'a')
Definition: int a=5;(allocates memory)
Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
What is the difference between %d and %i?
What are the 5 organizational structures?
How can I open a file so that other programs can update it at the same time?
What is sizeof in c?
Are the variables argc and argv are local to main?
What is difference between structure and union in c programming?
Why is main function so important?
Why is c known as a mother language?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What is printf () in c?
How many types of operators are there in c?
Why static variable is used in c?
What is volatile variable how do you declare it?
What is #define in c?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?