MCQs
Total Questions : 7
Answer: Option A. -> int array[10];
Because array variable and values need to be declared after the datatype only.
Answer: Option D. -> array;
array;
Answer: Option A. -> array[6];
The array location starts from zero, So it can accessed by array[6].
Answer: Option B. -> 8
Because the first element always starts at 0. So it is on 8 position.
Answer: Option A. -> n array is a series of elements of the same type in contiguous memory locations
n array is a series of elements of the same type in contiguous memory locations
Answer: Option A. -> ABC
We are just printing the values of first 3 values.
Answer: Option B. -> -30
It's just printing the negative value of the concern element.