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
Why polymorphism is used in oops?
Why do we need polymorphism in c#?
What is destructor in oop?
What does and I oop and sksksk mean?
Why multiple inheritance is not allowed?
What is super in oop?
What is difference between inheritance and polymorphism?
What is overloading in oops?
Is enum a class?
How oops is better than procedural?
Why is encapsulation used?
What is difference between data abstraction and encapsulation?
What is class and object in oops?
What is ambiguity in inheritance?
can inline function declare in private part of class?