Computer Science, asked by sbsms6926, 1 month ago

What will happen if in a C program you assign a value to an array element whose index exceeds the size of array?

 a)     The element will be set to 0

 b)     The compiler will not give any error but program may crash if some important data gets overwritten.

 c)     The compiler would report an error.

 d)     The array size would appropriately grow.

Answers

Answered by durgeshgupta02
0

Answer:

मराठी मध्ये शोधा

एक क कार्यक्रमात आपण ज्या निर्देशांक अरे आकार मर्यादा ओलांडली एक घटक ब कंपायलर कोणत्याही त्रुटी देऊ पण कार्यक्रम काही तर क्रॅश होऊ शकते नाही 0 निश्चित केली जाईल अॅरे घटक मूल्य लागू तर काय होईल

"important" (and any subsequent words) was ignored because we limit queries to 32 words.

What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array? The element will be set to 0. The compiler would report an error. The program may crash if some important data gets overwritten.

Similar questions