C Programming MCQ

1:

The declaration
union id{
char color[12];
int size;}shirt,Jeans;

denotes shirt and Jeans are variable of type id and

A.

Each can have a value of color and size

B.

Each can represent either a 12-character color or an integer size at a time

C.

Shirt and Jeans are same as struct variables

D.

Variable shirt and Jeans cannot be used simultaneously in a statement

 

Answer : B

Explanation :

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.