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
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
Math,
2 months ago
Social Sciences,
2 months ago
Math,
6 months ago
Science,
6 months ago
English,
11 months ago