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
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is polymorphism explain?
What is an advantage of polymorphism?
Why is polymorphism used?
Where You Can Use Interface in your Project
Can a destructor be called directly?
What is interface in oop?
What is the benefit of oop?
What is abstraction and encapsulation?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is the advantage of oop over procedural language?
2. Give the different notations for the class.\
what are the realtime excercises in C++?
State what is encapsulation and friend function?
What is meant by oops concept?