What is the difference between declaration and definition?
Answer Posted / sanjay
The definition is the one that actually allocates space,
and provides an initialization value, if any.
There can be many declarations, but there must be exactly
one definition. A definition tells the compiler to set
aside storage for the variable. A declaration makes the
variable known to parts of the program that may wish to use
it. A variable might be defined and declared in the same
statement
Is This Answer Correct ? | 57 Yes | 5 No |
Post New Answer View All Answers
What are the benefits of oop?
What is oops in simple words?
what is different between oops and c++
Write a program to reverse a string using recursive function?
What are the three parts of a simple empty class?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is oops and why we use oops? What is overriding in oop? What is polymorphism oop? Please send ford technologies placement paper 2 my mail id How oops is better than procedural? What is an interface in oop? What is multilevel inheritance explain with example? #include