Declare and initialize a two-dimensional character array named “stooges” to store the names “moe”, “larry” and “curly” (in that order). Do not make the array any larger than it needs to be.

Declare and initialize  a two-dimensional character array named “stooges” to store  the names “moe”, “larry” and “curly” (in that order). Do not make the array any larger than it needs to be.

LANGUAGE: C++

CHALLENGE:

Declare and initialize a two-dimensional character array named “stooges” to store the names “moe”, “larry” and “curly” (in that order). Do not make the array any larger than it needs to be.

SOLUTION:



char stooges[3][6] = {"moe","larry","curly"};

Add comment