103k views
4 votes
Dеclarе a two-dimеnsional array of doublеs (on thе stack) namеd tickеrValuеs with 12 rows and 31 columns

1 Answer

3 votes

Answer:

double tickerValues[12][31];

Step-by-step explanation:

The above written statement declares an array of double with 12 rows and 31 columns on the stack memory.The declaration is in C++ language.

I have not initialized the array as it is just the declaration to initialize it we have use loops or specify every element by yourself.

To declare it on the heap memory you have to use new keyword.

User Neema
by
5.8k points