recategorized
3,594 views

2 Answers

1 votes
1 votes

Answer B  4

size of the union is the same as the size of the largest member. Here float has largest size  =4

1 votes
1 votes
since union stores all elements at same location so it takes largest data type size which is float here this are of 4 bytes are also used by int and char too so ans is B 4 bytes
Answer:

Related questions

1 votes
1 votes
3 answers
1
go_editor asked Jul 21, 2016
2,584 views
Consider the following program segment:d=0; for(i=1; i<31, ++i) for (j=1; j < 31; ++j) for (k=1; k < 31; ++k) if((i+j+k%3)==0)) d=d+1; printf(“%d”, d);The output will...
1 votes
1 votes
1 answer
2
go_editor asked Jul 21, 2016
1,689 views
What is the output of the following program segment?sum(n) { if (n<1) return n; else return (n+sum(n-1)); } main() { printf(&ldquo;%d&rdquo;, sum(5)); }10161514