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

union
{
char ch[10];
short s;
}test;
test.s = 0xabcd;


main()
{
printf("%d",ch[10]);
}

Answer Posted / maruthi

Answer:it will print the value of test.s because union
allocates memory for the largest sized variable.And 'll get
the value of recently stored variable.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is mean by data types in c?

1032


code for find determinent of amatrix

1966


What is static and volatile in c?

1226


What is the use of function in c?

1193


Explain what is #line used for?

1072


Why main is used in c?

1078


Explain the difference between #include "..." And #include <...> In c?

1029


What is a stream in c programming?

1153


How do I copy files?

1059


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2255


What are the advantages of using new operator as compared to the function malloc ()?

1350


Are c and c++ the same?

1057


What is const volatile variable in c?

1036


Write a program in c to replace any vowel in a string with z?

1128


Is array name a pointer?

1031