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...

wat is the difference between a definition and declaration?
float y;---it looks like a declaration..but it s a
definition.how?someone explain

Answer Posted / dally

defination is allocating memory to the variable.
but declaration is telling what type of variable it is and
not allocating memory for it.

Ex.int i;
extern int b;

here int i is definition because variable of value is
allocated in memory.
but variable b declared as int variable but memory is not
allocated for this.

float y is defination as compiler allcates memory for it
if you give as extern float y it is declaration

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is void main () in c?

1215


What is string function c?

1034


Explain how many levels deep can include files be nested?

1082


Explain what is wrong with this program statement?

1126


What are the types of bitwise operator?

1118


Is a house a mass structure?

1098


What is function what are the types of function?

1002


What is an identifier?

1040


Write a code to generate a series where the next element is the sum of last k terms.

1229


Why do we write return 0 in c?

1074


What functions are used in dynamic memory allocation in c?

1090


I need a sort of an approximate strcmp routine?

1035


Write a program in c to replace any vowel in a string with z?

1135


What are the difference between a free-standing and a hosted environment?

1294


What are the advantages of c preprocessor?

1268