#include <stdio.h> union { int ival; float fval; } u; void main() { printf("%d", sizeof(u)); }
a) 16
b) 8
c) 4
d) 32
What will be the output of the following C code (Assuming size of int and float is 4)?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What will be the output of the following C code (Assuming size of int and float is 4)?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!