Interview Questions and Answers :: Amazon
Home > Experience Archives > Amazon > Interview Question Set > Discussion
34. What will be the output of this code fragment. What would be the output if it's union?
struct xx {
char a;
int b;
};
printf("%d", sizeof(struct xx));
Answer:
8 in case of union it will be 4Â
Ram
8 Apr, 2018 11:20 PM
8 in case of union it will be 4Â
Report Error
Report Error
Please Login First Click Here