Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the difference between definition and declaration?
give me some examples.

Answers were Sorted based on User's Feedback



what is the difference between definition and declaration? give me some examples...

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

what is the difference between definition and declaration? give me some examples...

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

Post New Answer

More C Interview Questions

wats SIZE_T meant for?

1 Answers  


Why should I use standard library functions instead of writing my own?

0 Answers  


what is the differance between pass by reference and pass by value.

7 Answers   Infosys,


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?

0 Answers   Aspire, Infogain,


what is the stackpointer

2 Answers  


Why & is used in c?

0 Answers  


write function to reverse char array ... without using second array

3 Answers  


How do you do dynamic memory allocation in C applications?

0 Answers  


How the processor registers can be used in C ?

7 Answers   HP,


List the different types of c tokens?

0 Answers  


Read two numbers from keyboard and find maximum of them?

1 Answers  


Describe advantages and disadvantages of the various stock sorting algorithms

1 Answers   Microsoft,


Categories