Arrays(Engineering > Computer Science And Engineering > C++ Language ) Questions and Answers
Explanation:-
Answer: Option A. -> int array[10]; Because array variable and values need to be declared after the datatype only.
Explanation:-
Answer: Option D. -> array; array;
Explanation:-
Answer: Option A. -> array[6]; The array location starts from zero, So it can accessed by array[6].
Explanation:-
Answer: Option B. -> 8 Because the first element always starts at 0. So it is on 8 position.
Explanation:-
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
Explanation:-
Answer: Option A. -> ABC We are just printing the values of first 3 values.
Explanation:-
Answer: Option B. -> -30 It's just printing the negative value of the concern element.