89.7k views
2 votes
The statement cout << sales[0,3] + sales[1,3]; will __________. Use the following array named sales to answer this question. 10000 12000 900 500 20000 350 600 700 800 1001. display 1300

2. display 1600
3. display sales [0,3] + sales[1,3]
4. result in an error

User Vozaldi
by
3.5k points

1 Answer

4 votes

Answer:

result in an error.

Step-by-step explanation:

The statement cout << sales[0,3] + sales[1,3]; corresponds to a syntax error.

In order to refer to a certain element in a double dimension array in C++, the correct syntax should be :

cout<<a[0][3]+a[1][3];

User Jemimah
by
4.3k points