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

What are the 4 types of library?

1185


what are the events occur in intr activated on interrupt vector table

1758


What are static variables?

1146


What is an adaptor class in c++?

1202


What is pointer in c++ with example?

1079


Define a nested class.

1086


Is rust better than c++?

1124


how to explain our contribution in the project?

3707


What are the advantages of inheritance in c++?

1108


Specify some guidelines that should be followed while overloading operators?

1215


Write a recursive program to calculate factorial in c++.

1085


What is basic if statement syntax?

1096


What is the best c++ compiler?

1165


Is c++ an oop?

1106


What is data binding in c++?

966