What is the difference between declaration and definition?
Answer Posted / friend nitk
The declaration tells the compiler that at some later point
we plan to present the definition of this declaration.
E.g.: void stars () //function declaration
The definition contains the actual implementation.
E.g.: void stars () // declarator
{
for(int j=10; j > =0; j--) //function body
cout << *;
cout << endl; }
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Where is pseudocode used?
Why is object oriented programming so hard?
Can abstract class have normal methods?
Which method cannot be overridden?
What are the 4 pillars of oop?
Can we create object of abstract class?
What is the difference between abstraction and polymorphism?
Why do we use encapsulation in oops?
What is encapsulation in simple terms?
What is debug class?what is trace class? What differences are between them? With examples.
What is difference between pop and oop?
What is class and object with example?
How does polymorphism work?
What is encapsulation in ict?
What is advantage of inheritance?