Engineering Online MCQ Number 0629 – online study, assignment and exam

Multiple choice question for engineering Set 1 1. What is the output of this C code? #include <stdio.h> union { int x; char y; }p; int main() { p.x = 10; printf("%dn", sizeof(p)); } a) Compile time error b) sizeof(int) + sizeof(char) c) Depends on the compiler d) sizeof(int) [learn_more caption=”View Answer”]Answer: d[/learn_more] 2. What…

This content is for Complete Homework, Premium 1 Day Pass, Premium 1 Month, and Premium 6 Months members only.
Log In Visit Now