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

Home | Discussion Forum
Taiyari24Hour

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



View More Related Question

2) Consider the following type definition.

typedef char x[10];
x myArray[5];

What will sizeof(myArray) be ? (Assume one character occupies 1 byte)

3) What will be the output of the following code?

void main()
{
int a[10];
printf("%d %d", a[-1], a[12]);
}

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

5) What does the following declaration mean?
int (*ptr)[10];

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.