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

Should I learn c or c++ or c#?

969


What does new in c++ do?

988


What does asterisk mean in c++?

1090


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

1029


Which one between if-else and switch is more efficient?

1042


What is data hiding c++?

1018


What is the difference between #import and #include in c++?

1079


What is data type in c++?

991


When does a 'this' pointer get created?

1058


What new()is different from malloc()?

1076


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

1035


What is DlgProc?

994


What are the advantages of prototyping?

1030


State two differences between C and C++.

1125


What is encapsulation in c++?

1239