TCS Company Programming Arrays

What does the following declaration mean?
int (*ptr)[10];
1.ptr is array of pointers to 10 integers
2.ptr is a pointer to an array of 10 integers
3.ptr is an array of 10 integers
4.ptr is an pointer to array

Read Solution (Total 6)

TCS Other Question

What will happen if in a C program you assign a value to an array element
whose subscript exceeds the size of array?
1. The element will be set to 0.
2. The compiler would report an error.
3. The program may crash if some important data gets overwritten.
4. The array size would appropriately grow.
In C, if you pass an array as an argument to a function, what actually gets
passed?
1.Value of elements in array
2.First element of the array
3.Base address of the array
4.Address of the last element of array