adplus-dvertising
frame-decoration

Question

A three-dimensional array can be declared as follows:

a.

int A[1]

b.

int A[2][2]

c.

int A[3][3][3];

d.

None of the above

Answer: (c).int A[3][3][3];

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. A three-dimensional array can be declared as follows:

Similar Questions

Discover Related MCQs

Q. An n × n matrix is known as_________.

Q. A matrix having irregular numbers of items in each row is known as___________.

Q. An n × m matrix is known as__________, i.e., one whose size may not be the same in both dimensions.

Q. A matrix having a larger number of elements with zero value than the number of nonzero elements is said to be a_______.

Q. An __________ is an ordered collection of elements that share the same name.

Q. What is it that the compiler needs to know about an array that it needs to know about an ordinary variable known as a scalar variable in the trade?

Q. An array is a collection of elements of the same data type and it can be referred to with a___________.

Q. An array can be____________type.

Q. The first element in the array is numbered 0, so the last element is ______ than the size of the array.

Q. The first element is referred to as array [__________] and any element at x position is referred to as array[_________].

Q. What are used to refer to array elements?

Q. The method of subscribing arrays in ‘________’ is different from that used in many other
programming languages.

Q. The first element in the array is numbered__________.

Q. Once memory space is allocated to an array, it cannot be________.

Q. If the number of elements to be stored in an ______increases or decreases significantly at runtime, it may require more memory space or result in wastage of memory, both of which are unacceptable.

Q. The total number of elements that can be stored in a string without increasing its current amount of allocated memory is called its:

Q. A double sub-scripted array declared as int a[ 3 ][ 5 ]; has how many elements?

Q. Using square brackets ([]) to retrieve vector elements .............. perform bounds checking; using member function at to retrieve vector elements ................ perform bounds checking.

Q. The largest element of an array index is called its .................

Q. The information about an array that is used in a program will be stored in