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 u

{

union u

{

int i;

int j;

}a[10];

int b[10];

}u;

main()

{

printf("\n%d", sizeof(u));

printf(" %d", sizeof(u.a));

// printf("%d", sizeof(u.a[4].i));

}

a. 4, 4, 4

b. 40, 4, 4

c. 1, 100, 1

d. 40 400 4

Answers were Sorted based on User's Feedback



union u { union u { int i; int j; }a[10]; int ..

Answer / guest

20, 200, error for 3rd printf

Is This Answer Correct ?    3 Yes 2 No

union u { union u { int i; int j; }a[10]; int ..

Answer / psrk

option d

Is This Answer Correct ?    1 Yes 1 No

union u { union u { int i; int j; }a[10]; int ..

Answer / sk

20 200

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Code Interview Questions

how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

0 Answers   Mbarara University of Science and Technology,


What is full form of PEPSI

0 Answers  


void main() { int const * p=5; printf("%d",++(*p)); }

3 Answers   Infosys, Made Easy, State Bank Of India SBI,


why is printf("%d %d %d",i++,--i,i--);

4 Answers   Apple, Cynity, TCS,


main() { int i=-1; -i; printf("i = %d, -i = %d \n",i,-i); }

1 Answers  


find simple interest & compund interest

2 Answers  


How to return multiple values from a function?

7 Answers  


main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n", bit >> (i - (i -1))); } } a. 512, 256, 0, 0, 0 b. 256, 256, 0, 0, 0 c. 512, 512, 512, 512, 512 d. 256, 256, 256, 256, 256

2 Answers   HCL,


main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); } int i;

1 Answers  


write a origram swaoing valu without 3rd variable

2 Answers  


int i; main(){ int t; for ( t=4;scanf("%d",&i)-t;printf("%d\n",i)) printf("%d--",t--); } // If the inputs are 0,1,2,3 find the o/p

2 Answers  


#include<stdio.h> main() { struct xx { int x=3; char name[]="hello"; }; struct xx *s=malloc(sizeof(struct xx)); printf("%d",s->x); printf("%s",s->name); }

1 Answers   TCS,


Categories