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
What is class and object in oops?
What is class in oop with example?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is cohesion in oop?
What are oops methods?
What is polymorphism used for?
What is class and object with example?
what is graphics
What are the advantages of polymorphism?
How long to learn object oriented programming?
Get me a number puzzle game-program
What are two types of polymorphism?
What is polymorphism in oops with example?
What is polymorphism what are the different types of polymorphism?
What is debug class?what is trace class? What differences are between them? With examples.