Your Ad Here
0

What is the difference between declaration and definition?

Posted by The Blogger on 8:17 AM in
Answer:

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; }


interview questions and answers, interview What is the difference between declaration and definition, What is the difference between declaration and definition, declaration and definition

0 Comments

Post a Comment

Your Ad Here

Copyright © 2009 Interview Questions and Answers