What is the difference between declaration and definition?
Answer Posted / durga devi sathi
Declaration of a variable means name the variable and tells
compiler that this has been present elsewhere in the program
Definition means that allocate or reserve some space and
store the value in that variable.
the variables like auto and registers, the declaration and
definition done at the same time because they are named the
variable and allocate the memory at the same time.
Ex- int a;//declaration and definition
extern int a;//only declaration
once the variable is defined it is ready to hold the data
value needed by the program
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is interface in oop?
Can destructor be overloaded?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What is property in oops?
What is purpose of inheritance?
What is difference between inheritance and polymorphism?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What is constructor overloading in oop?
What is the purpose of polymorphism?
What do you mean by abstraction?
How do you explain polymorphism?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What is the difference between abstraction and polymorphism?
What is encapsulation process?
What does sksksk mean in text slang?