Question 11
#include <stdio.h>
int main()
{
int a[][] = {{1,2},{3,4}};
int i, j;
for (i = 0; i < 2; i++)
for (j = 0; j < 2; j++)
printf(\"%d \", a[i][j]);
return 0;
}
Question 12
#include<stdio.h>
int main()
{
int a[10][20][30] = {0};
a[5][2][1] = 2;
return 0;
}
Question 13
#include <stdio.h>
int main()
{
char p;
char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8};
p = (buf + 1)[5];
printf(\"%d\\n\", p);
return 0;
}
Question 14
t0 = i ∗ 1024 t1 = j ∗ 32 t2 = k ∗ 4 t3 = t1 + t0 t4 = t3 + t2 t5 = X[t4]Which one of the following statements about the source code for the C program is CORRECT?
Question 16
int arr[] = {1,2,3,4,5};
extern int arr[];
Question 17
#include \"stdio.h\"
int * arrPtr[5];
int main()
{
if(*(arrPtr+2) == *(arrPtr+4))
{
printf(\"Equal!\");
}
else
{
printf(\"Not Equal\");
}
return 0;
}
Question 19
#include \"stdio.h\"
void fun(int n)
{
int idx;
int arr1[n] = {0};
int arr2[n];
for (idx=0; idx<n; idx++)
arr2[idx] = 0;
}
int main()
{
fun(4);
return 0;
}
Question 20
#include \"stdio.h\"
int size = 4;
int arr[size];
int main()
{
if(arr[0])
printf(\"Initialized to ZERO\");
else
printf(\"Not initialized to ZERO\");
return 0;
}
There are 37 questions to complete.