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 are volatile variables in c?
Do you know the use of 'auto' keyword?
What is volatile keyword in c?
What is hungarian notation? Is it worthwhile?
code for quick sort?
Why n++ execute faster than n+1 ?
What is the size of structure pointer in c?
Tell me can the size of an array be declared at runtime?
Explain how do you declare an array that will hold more than 64kb of data?
What is the sizeof () operator?
What is c programming structure?
What is the meaning of ?
What is variables in c?
What is header file definition?
Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix