What is the difference between declaration and definition?

Answer Posted / roshan

During declaration we just specify the type and no memory
is allocated to the variable. But during the definition an
initial value is assigned and memory is allocated to the
variable.

Is This Answer Correct ?    186 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main feature of oop?

614


Is this job good for future? can do this job post grduate student?

1685


Why polymorphism is used in oops?

575


What is encapsulation with example?

570


What is methods in oop?

535






Can we define a class within the interface?

548


What is oops with example?

559


write a program to find 2 power of a 5digit number with out using big int and exponent ?

1887


Explain virtual inheritance?

680


What are the 3 principles of oop?

608


How Do you Code Composition and Aggregation in C++ ?

24185


Which language is not a true object oriented programming language?

633


What is static in oop?

585


What is a superclass in oop?

662


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1447