what is the difference between declaration ,defenetion and
initialization of a variable?
Answer Posted / shabeer v c
A good example to illustrate this Question ges like this:
Whenever we apply for a job the company declares that we
have been selected. Similarly we declare a variable like
int emp;
(here emp behaves as an employee).
Then he will be assigned with a initial salary which
will be incremented in course of time period or on
experience basis.
Similarly the variable int is assigned a initial
value.
i.e int emp=20;
(value can be changed in between program)
The employee is now identified by his post, which can
define his status in the company.
Same way the variable is also defined in the
program.
ie. int emp;
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
Why is c faster?
How does pointer work in c?
Where static variables are stored in c?
How can I write functions that take a variable number of arguments?
How can I swap two values without using a temporary?
What is getch?
What is the difference between exit() and _exit() function in c?
Explain how do you print only part of a string?
What is a null string in c?
What is structure in c definition?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What is the collection of communication lines and routers called?
What is sizeof c?
Why we write conio h in c?
Explain the red-black trees?