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
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is the purpose of polymorphism?
What do you mean by variable?
what is different between oops and c++
What are the two different types of polymorphism?
explain sub-type and sub class? atleast u have differ it into 4 points?
What are different oops concepts?
What is abstraction encapsulation?
What is inheritance write a program to show use of inheritance?
Why do we use oops?
What is the difference between a constructor and a destructor?
What polymorphism means?
What is the real time example of encapsulation?
What language is oop?
What are the components of marker interface?