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

Which uses less memory?
a)
struct astruct
{
int x;
float y;
int v;
};

b)
union aunion
{
int x;
float v;
};

c)
char array[10];

Answer Posted / gourav bhatt

Mr Ranjeet u r wron vecause ib ur case too the answer will
be "b" .thats gud that u find misktake in jaroosh example but
the anser is b coz the union has size 4 .

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain dangling pointer.

1188


Differentiate between a pointer and a reference with respect to c++.

1299


What is polymorphism in c++? Explain with an example?

1102


write a function signature with various number of parameters.

1099


What are containers in c++?

1031


Is there finally in c++?

1149


How do you flush a buffer in c++?

1144


What does count ++ do in c++?

1254


What is the use of seekg in c++?

1096


Describe the process of creation and destruction of a derived class object?

1171


What is the difference between a template and a macro?

1116


What is implicit pointer in c++?

1141


Explain deep copy?

1104


Does c++ have arraylist?

1080


Is multimap sorted c++?

1072