What is the difference between declaration and definition?
Answer Posted / soumyajit
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.
or we can also say,
Declaration means just telling to complier about variable
or function but definition means actually allocating memory
for variable.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is this pointer in oop?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is use of overloading?
What is the example of polymorphism?
What are the 4 main oop principles?
Is data hiding and abstraction same?
Can bst contain duplicates?
What is the difference between encapsulation and polymorphism?
explain sub-type and sub class? atleast u have differ it into 4 points?
What is protected in oop?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
How Do you Code Composition and Aggregation in C++ ?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What are benefits of oop?
What do you mean by overloading?