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
Which language is not a true object oriented programming language?
What is destructor example?
What is the fundamental idea of oop?
What type of loop is a for loop?
What is the main purpose of inheritance law?
2. Give the different notations for the class.\
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 are the 3 principles of oop?
What does enum stand for?
Why oops is important?
What is object in oop with example?
What are oops functions?
What is difference between inheritance and polymorphism?
is there any choice in opting subjects like 4 out of 7
Why do we use encapsulation in oops?