Question: What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
Options
A : The element will be set to 0.
B : The compiler would report an error.
C : The program may crash if some important data gets overwritten.
D : The array size would appropriately grow.
Arrays - General Questions more questions
Which of the following statement is correct?
Which of the following statement is correct?
Which of the following statement is correct?
Which of the following statements is correct?
What does the following declaration mean? int (*ptr)[10];
In C, if you pass an array as an argument....
Declare the following statement? "An array of three pointers to....
What do the following declaration signify?
Declare the following statement? "A pointer to an array of....
Arrays - General Questions more Online Exam Quiz
Constructors and Destructors - General Questions
Objects and Classes - General Questions
OOPS Concepts - General Questions
References - General Questions