Question: 6 ] Whats the error in the following program? int i; union uuu { unsigned un;i nt in; float fl; } ; union uuu arr

6] Whats the error in the following program?
int i;
union uuu {
unsigned un;i
nt in;
float fl;
};
union uuu arr[3];//array of 3 union elements
arr[0].un =42;
arr[1].in =-42;
arr[2].fl =42.0f;
for (i=0;i3;i++)
printf("arr[%d]= d", arr[i].un);
Solve for code blocks not C++
6 ] Whats the error in the following program? int

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!