C Language MCQ - English
What does the following declaration mean?
int (*ptr)[10];
Answer : B
View More Related Question
1) What will be the output of the program ? #include<stdio.h>
void main()
{
int a[5] = {5, 1, 15, 20, 25};
int i, j, m;
i = ++a[1];
j = a[1]++;
m = a[i++];
printf("%d, %d, %d", i, j, m);
}
2) What does the following declaration mean? int (*ptr)[10];
View Answer
3) Size of the array need not be specified, when
View Answer
4) What will be the output of the program if the array begins at 65472 and each integer occupies 2 bytes?
#include <stdio.h>
void main()
{
int a[3][4] = {1, 2, 3, 4, 4, 3, 2, 1, 7, 8, 9, 0};
printf("%u, %u", a+1, &a+1);
}
5) What will be the output of the program ? #include<stdio.h>
int main()
{
int a[5] = {51, 1, 5, 20, 25};
int x, y, z;
x = ++a[1];
y = a[1]++;
z = a[x++];
printf("%d, %d, %d", x, y, z);
return 0;
}