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

what is the defrenece between structure and union

Answer Posted / kapildalke

Thanks for these answer renuka..............
it means that
struct student
{
int i;
char a,b;
}
it occupy 4 bytes of memory..........
and in case of union
union student
{
int i;
char a,b;
}
it occupies only 2 byte memory.............

Am i write or wrong

Is This Answer Correct ?    21 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How old is c programming language?

1061


What is c definition?

1335


Which function in C can be used to append a string to another string?

1272


Why is c called a structured programming language?

1329


What is mean by data types in c?

1070


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

1296


What is ctrl c called?

1095


What is pre-emptive data structure and explain it with example?

3786


What is difference between arrays and pointers?

1146


How do you print an address?

1323


Write a program to swap two numbers without using third variable in c?

1178


Explain about the constants which help in debugging?

1417


How will you divide two numbers in a MACRO?

1183


Is it possible to pass an entire structure to functions?

1053


Is c is a low level language?

1204