Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

C %20Interview%20Questions%20and%20Answers

Question: What is the difference between declaration and definition?
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; }
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook