C Language MCQ - English
What does the following declaration mean?
int (*ptr)[10];
Home | Discussion Forum
What does the following declaration mean?
int (*ptr)[10];
ptr is array of pointers to 10 integers
ptr is a pointer to an array of 10 integers
ptr is an array of 10 integers
ptr is an pointer to array
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];
ptr is array of pointers to 10 integers
ptr is a pointer to an array of 10 integers
ptr is an array of 10 integers
ptr is an pointer to array
View Answer
3) Size of the array need not be specified, when
Initialization is a part of definition
It is a declaratrion
It is a formal parameter
All of these
View Answer
4) An array elements are always stored in ________ memory locations.
5) What will be printed after execution of the following code?
void main()
{
int arr[10] = {1,2,3,4,5};
printf("%d", arr[5]);
}