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


Please Help Members By Posting Answers For Below Questions

What are volatile variables in c?

522


Do you know the use of 'auto' keyword?

663


What is volatile keyword in c?

585


What is hungarian notation? Is it worthwhile?

700


code for quick sort?

1623






Why n++ execute faster than n+1 ?

1852


What is the size of structure pointer in c?

614


Tell me can the size of an array be declared at runtime?

600


Explain how do you declare an array that will hold more than 64kb of data?

905


What is the sizeof () operator?

625


What is c programming structure?

621


What is the meaning of ?

623


What is variables in c?

610


What is header file definition?

571


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

1520