What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array? - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
23 Feb 2023 01:38 PM study24x7 study24x7

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 program may crash if some important data gets overwritten.

D

The array size would appropriately grow.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles