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 difference between call by value and call by reference in c?
Once I have used freopen, how can I get the original stdout (or stdin) back?
largest Of three Number using without if condition?
What does c mean in basketball?
How would you rename a function in C?
int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer
Can you write the algorithm for Queue?
Give the rules for variable declaration?
Explain what are compound statements?
What is a const pointer in c?
how we can make 3d venturing graphics on outer interface
Why functions are used in c?
Where are c variables stored in memory?
What is a pointer variable in c language?
Explain the advantages of using macro in c language?