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
Can you inherit a private class?
officer say me - i am offered to a smoking , then what can you say
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
What is the advantage of oop over procedural language?
What are the components of marker interface?
What is the difference between encapsulation and polymorphism?
What do you mean by Encapsulation?
What is class and object with example?
How is polymorphism achieved?
What is a class and object?
What is encapsulation c#?
What do you mean by variable?
Why is polymorphism used?
what is the drawback of classical methods in oops?
What is abstraction example?