Computer Science, asked by maneshnandanwar, 6 months ago

Pick the best statement for the below program: #include "stdio.h"
int main() {union {int i1; int 12;} myVar = {.12 =100); printf("%d %d",myVar.11, myVar.12); return 0; }
Compile error due to incorrect syntax of initialization.
No compile error and it'll print "O 100"
No compile error and it'll print “100 100"
none

Answers

Answered by ROCKYCEO
0

Answer:

Explanation:

#include "stdio.h"

int main()

{

struct {int a[2];} arr[] = {{1},{2}};

printf("%d %d %d %d",arr[0].a[0],arr[0].a[1],arr[1].a[0],arr[1].a[1]);

return 0;

}

Similar questions