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 / shrikant auti

The code written is incorrect......
union
{
char ch[10];
short s;
}test;
test.s = 0xabcd;


main()
{
printf("%d",ch[10]);/*%D CAN'T BE USED FOR CHARACTER
EXTRACTION*/
}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do header files do?

1056


Where static variables are stored in memory in c?

982


What is structure padding in c?

1115


Can the sizeof operator be used to tell the size of an array passed to a function?

1100


What is this pointer in c plus plus?

1067


Explain main function in c?

1071


Function calling procedures? and their differences? Why should one go for Call by Reference?

1075


What does %p mean?

1074


Where is c used?

1081


Explain about the functions strcat() and strcmp()?

1034


Explain low-order bytes.

1016


When should a type cast be used?

999


What is dynamic dispatch in c++?

1041


How many parameters should a function have?

1169


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2246