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 element will be set to 0.
B) The compiler would report an error.
C) The array size would appropriately grow.
D) The program may crash if some important data gets overwritten.
Correct Answer:
Verified
Q26: What is maximum dimension that array can
Q27: Array with last element 'n' will always
Q28: Array is an example of _ type
Q29: Array is _ data type in C
Q30: A Pointer to a block of memory
Q32: If you pass an array as an
Q33: Pointer is special kind of variable which
Q34: Pointer variable is declared using preceding _
Q35: Address stored in the pointer variable is
Q36: Consider the 32 bit compiler. We need
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents