Declare a two-dimensional character array named “gasgiants” that is capable of storing the names of the gas giant planets of our solar system: jupiter, saturn, uranus, and neptune.

Declare a two-dimensional character array named “gasgiants” that is capable of storing the names of the gas giant planets of our solar system:  jupiter, saturn, uranus, and neptune.

LANGUAGE: C++

CHALLENGE:

Declare a two-dimensional character array named “gasgiants” that is capable of storing the names of the gas giant planets of our solar system:
jupiter, saturn, uranus, and neptune.

Do not make the array any larger than it needs to be.

SOLUTION:

char gasgiants[4][8];

Add comment