What does the following declaration mean?
int (*ptr)[10];

Home | Discussion Forum
Taiyari24Hour

What does the following declaration mean?
int (*ptr)[10];



View More Related Question

1) What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?

2) What will be printed after execution of the following code?

void main()
{
int arr[10] = {1,2,3,4,5};
printf("%d", arr[5]);
}

3) 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);
}

4) An array elements are always stored in ________ memory locations.

5) What does the following declaration mean?
int (*ptr)[10];

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.