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 / vipul

the program is incorrect bcz in main function %d is used for integer type value and union is same as the structure and there is no return type in the main function thus it will return a charter type value,

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 context in c?

880


plz let me know how to become a telecom protocol tester. thank you.

2136


List the variables are used for writing doubly linked list program.

1965


can we change the default calling convention in c if yes than how.........?

2467


Why is C language being considered a middle level language?

1040


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1066


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1954


What is modeling?

999


What is volatile c?

954


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

1049


What are the salient features of c languages?

1042


What is string in c language?

1070


What is oops c?

1114


What is extern c used for?

990


What is the deal on sprintf_s return value?

1065