what is the difference between definition and declaration?
give me some examples.
Answers were Sorted based on User's Feedback
Answer / mohammed anas
declaration:
for example,int i;
definition:
declaration as well as initialisation is known as definition
for example int i=25;
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / 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 |
wats SIZE_T meant for?
Why should I use standard library functions instead of writing my own?
what is the differance between pass by reference and pass by value.
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
what is the stackpointer
Why & is used in c?
write function to reverse char array ... without using second array
How do you do dynamic memory allocation in C applications?
How the processor registers can be used in C ?
List the different types of c tokens?
Read two numbers from keyboard and find maximum of them?
Describe advantages and disadvantages of the various stock sorting algorithms