recategorized
4,443 views

2 Answers

1 1 vote

Answer B  4

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

1 1 vote
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:
Position:
Show:

Related questions

1 1 vote
3 answers 3 answers
3.3k
3.3k views
go_editor asked Jul 21, 2016
3,295 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 be9...
1 1 vote
1 1 answer
2.1k
2.1k views
go_editor asked Jul 21, 2016
2,119 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
3 3 votes
1 1 answer
1.2k
1.2k views
go_editor asked Jul 21, 2016
1,214 views
Assume that $x$ and $y$ are non-zero positive integers. What does the following program segment perform?while (x!=0) { if(x>y) x=x-y; else y=y-x; printf(“%d”, x) }Compute...
1 1 vote
2 2 answers
3.2k
3.2k views
go_editor asked Jul 21, 2016
3,249 views
The speed up of a pipeline processing over an equivalent non-pipeline processing is defined by the ration:where $n \rightarrow$ no. of tasks$t_n \rightarrow$ time of comp...