PDF Archive

Easily share your PDF documents with your contacts, on the Web and Social Networks.

Share a file Manage my documents Convert Recover Search Help Contact

Data Types and Sizes – 2.Image.Marked.pdf

Preview of PDF document data-types-and-sizes-2-image-marked.pdf

Page 1 2 3 4 5 6 7 8

Text preview


union Sti s;

printf("%d", sizeof(s));

return 0;


a) 8
b) 5
c) 9
d) 4
View Answer
Explanation:Since the size of a union is the size of its maximum datatype, here int is the largest hence 4.
$ cc pgm7.c
$ a.out

6. What is the output of this C code?

#include <stdio.h>