What will happen if in a C program you assign a value to an array element whose

User Generated

Fnyru1

Programming

Description

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.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

Answer: Option C

..............................................................


Anonymous
I use Studypool every time I need help studying, and it never disappoints.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags