C Programming - C Arrays Questions and Answers

Arrays are the most important topic to be covered with the C language.Here we discuss the multiple choice questions about C arrays.All the questions have unique answers.
1. What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
[A] The compiler would report an error.
[B] The program may crash if some important data gets overwritten.
[C] The array size would appropriately grow.
[D] The element will be set to 0.
2. What does the following declaration mean?
int (*ptr)[10];
[A] ptr is a pointer to an array of 10 integers
[B] ptr is array of pointers to 10 integers
[C] ptr is an array of 10 integers
[D] ptr is an pointer to array
Are these questions helpful for you?

Comments: (Your feedback is valuable to us)