πŸ“Š C Programming
Q. What will be the output of the following C code on a 64 bit machine?
Code:
#include <stdio.h>
    union Sti
    {
        int nu;
        char m;
    };
    int main()
    {
        union Sti s;
        printf("%d", sizeof(s));
        return 0;
    }
  • (A) 8
  • (B) 5
  • (C) 9
  • (D) 4
πŸ’¬ Discuss
βœ… Correct Answer: (D) 4

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
272
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Geetam
Publisher
πŸ“ˆ
95%
Success Rate