. An instructor has a classroom with 5 rows of seats and 8 seats in each row. She wants to use an array to represent hold the students’ names as they are seated in the classroom. Which of the following is a possible correct declaration?

a) int rows = 5;
int seats_per_row = 8;
string plan [rows - 1] [seats_per_row - 1];

b) const int rows = 5;
const int seats_per_row = 8;
string plan [rows, seats_per_row];

c) int rows = 5;
int seats_per_row = 8;
string plan [rows] [seats_per_row];

d) const int rows = 5;
const int seats_per_row = 8;
string plan [rows] [seats_per_row];

d) const int rows = 5;
const int seats_per_row = 8;
string plan [rows] [seats_per_row];

Computer Science & Information Technology

You might also like to view...

On an envelope, you should abbreviate Arkansas as Ark.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A collection of related webpages is called a _____.

A. web browser B. web layer C. website D. weblink

Computer Science & Information Technology