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 encapsulation in simple terms?
when to use 'mutable' keyword and when to use 'const cast' in c++
How do you achieve polymorphism?
Whats oop mean?
Can you inherit a private class?
What is object-oriented programming? Webopedia definition
How do you define social class?
What are the data types in oop?
what are the ways in which a constructors can be called?
What is a null tree?
What is overloading in oops?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
How do you explain polymorphism?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.