Question
a.
The array size would appropriately grow.
b.
The element will be set to 0.
c.
The program may crash if some important data gets overwritten.
d.
The compiler would report an error.
Posted under C Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What will happen if in a C program you assign a value to an array element whose subscript exceeds the size of array?
Similar Questions
Discover Related MCQs
Q. If you pass an array as an argument to a function, what actually gets passed?
View solution
Q. What is meaning of following declaration ?
int arr[20];
View solution
Q. int a[20]
What will be the size of above array element ?
View solution
Q. What is meaning of the following statement ?
int *ptr[20]
View solution
Q. In C Programming, If we need to store word "INDIA" then syntax is as below -
View solution
Q. Below is an example of -
int RollNum[30][4];
View solution
Q. Pointer is special kind of variable which is used to stored __________ of the variable.
View solution
Q. Pointer variable is declared using preceding _________ sign.
View solution
Q. Address stored in the pointer variable is of type __________.
View solution
Q. Consider the 32 bit compiler. We need to store address of integer variable to integer pointer. What will be the size of integer pointer ?
View solution
Q. In order to fetch the address of the variable we write preceding _________ sign before variable name.
View solution
Q. A pointer is
View solution
Q. "&" is called as ___________ in pointer concept.
View solution
Q. "*" is called as ___________.
View solution
Q. What is (void*)0?
View solution
Q. In which header file is the NULL macro defined?
View solution
Q. How many bytes are occupied by near, far and huge pointers (DOS)?
View solution
Q. If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?
View solution
Q. What would be the equivalent pointer expression for referring the array element a[i][j][k][l]
View solution
Q. A pointer is
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!