What is the difference between declaration and definition?
Answer Posted / durga devi.s
variable must be declared and defined before used in the program
variable declaration:
1. tells the compiler what is the name of the variable.
2. specifies what type of data values the variable can hold.
variable definition
1. reserves the memory for the declared variable and store
some value is called garbage value.
-> variable declaration and variable definition done at the
same time.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is abstraction in oop with example?
What is encapsulation in oops?
• What are the desirable attributes for memory managment?
What is meant by multiple inheritance?
What is interface in oop?
What is the difference between a constructor and a destructor?
What is encapsulation c#?
Why interface is used?
Why is polymorphism important in oop?
What is class and object with example?
What is this pointer in oop?
What is the purpose of polymorphism?
What is encapsulation in simple terms?
What does enum stand for?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)