Arrays
- Which of the following gives the memory address of the first element in array?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
array;
- Which of the following accesses the ninth element stored in array?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The array location starts from zero, So it can accessed by array[8].
- What is a array?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
An array is a series of elements of the same type in contiguous memory locations
- What is the index number of the last element of an array with 12 elements?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Because the first element always starts at 0. So it is on 11 position.
- Which of the following correctly declares an array?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Because array variable and values need to be declared after the datatype only.