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 is #include math h in c++?

1074


Is string data type in c++?

1028


Which function should be used to free the memory allocated by calloc()?

1021


Can a list of string be stored within a two dimensional array?

992


What is a friend function in c++?

1626


What are the classes in c++?

1104


What is the difference between delegation and implemented-in-terms-of?

1002


How many standards of c++ are there?

1090


What is data binding in c++?

955


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2511


What is std :: endl?

1027


what is VOID?

1061


Which is better c++ or java?

977


Difference between Abstraction and encapsulation in C++?

1151


What are virtual functions in c++?

1179