what is the difference between definition and declaration?
give me some examples.
Answer Posted / code00002
A declaration introduces an identifier and describes its
type, be it a type, object, or function. A declaration is
what the compiler needs to accept references to that
identifier. These are declarations:
extern int bar;
extern int g(int, int);
double f(int, double); // extern can be omitted for function
declarations
class foo; // no extern allowed for class declarations
complete on http://answerwale.co.cc/?p=39#comment-23
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is the use of function overloading in C?
Why is c not oop?
What are the properties of union in c?
How many levels deep can include files be nested?
Can a file other than a .h file be included with #include?
Is a house a mass structure?
Explain what is wrong with this program statement?
What is use of integral promotions in c?
How can you tell whether a program was compiled using c versus c++?
Define the scope of static variables.
What does volatile do?
how many errors in c explain deply
define string ?
Explain the term printf() and scanf() used in c language?
Is flag a keyword in c?