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 / kantilal

the diff b/w defination and declaration is
defination is allocating memory to the variable
ddeclaration is telling what type of variable it is and not
allocating memory for it

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

Is This Answer Correct ?    30 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

p*=(++q)++*--p when p=q=1 while(q<=6)

1744


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

1083


What is a char in c?

975


What are the types of i/o functions?

1321


If null and 0 are equivalent as null pointer constants, which should I use?

1194


What does a pointer variable always consist of?

1085


What are qualifiers and modifiers c?

988


what is stack , heap ,code segment,and data segment

2682


what is uses of .net

1721


If the size of int data type is two bytes, what is the range of signed int data type?

1012


Explain how can I prevent another program from modifying part of a file that I am modifying?

1072


What are the similarities between c and c++?

1059


pierrot's divisor program using c or c++ code

2222


what is different between auto and local static? why should we use local static?

1115


What is difference between static and global variable in c?

1032