C Language MCQ - English
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
Sponsored Ad
Feel free to find and hire your online essay writer to help you with papers. AdvancedWriters will not let you down.
View More Related Question
1) 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
2) Array passed as an argument to a function is interpreted as
Address of the array.
Values of the first elements of the array.
Address of the first element of the array.
Number of element of the array.
View Answer
3) What is the maximum number of dimensions an array in C may have?
4) 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);
}
5) In C, if you pass an array as an argument to a function, what actually gets passed?
Value of elements in array
First element of the array
Base address of the array
Address of the last element of array
View Answer