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


Why can't we initialise member variable of a strucutre



Why can't we initialise member variable of a strucutre..

Answer / thunder

Because at the time of creation of structures, memory is not
allocate in the memory block.Memory will be allocated at the
time of creation of structure instance only, that's y we are
not able to initialize the structure members.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More C Interview Questions

15.what is the disadvantage of using macros? 16.what is the self-referential structure? 17.can a union be self-referenced? 18.What is a pointer? 19.What is the Lvalue and Rvalue? 20.what is the difference between these initializations? 21.Char a[]=”string”; 22.Char *p=”literal”; 23.Does *p++ increment p, or what it points to?

2 Answers   CTS,


Meaning of () in c

1 Answers  


Is printf a keyword?

0 Answers  


What is an array in c?

0 Answers  


What is difference between union and structure in c?

0 Answers  


f1() { f(3);} f(int t) { switch(t); { case 2: c=3; case 3: c=4; case 4: c=5; case 5: c=6; default: c=0;} value of c?

5 Answers   Geometric Software,


Explain the difference between ++u and u++?

0 Answers  


How can I generate floating-point random numbers?

0 Answers  


how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?

0 Answers  


What is uint8 in c?

0 Answers  


hat is a pointer?

4 Answers   Assurgent,


Why shouldn’t I start variable names with underscores?

0 Answers  


Categories