. 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...

In the accompanying image of a Microsoft Word 2016 document, Box A points to the _____.? ?

A. ?title bar B. ?status bar C. ?taskbar D. ?scroll bar

Computer Science & Information Technology

What is the default line border for tables in Word 2010?

A) A single line B) A dashed line C) A thin double line D) A thick border line

Computer Science & Information Technology

Windows Server 2008 uses the Recovery Console.

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

Computer Science & Information Technology

Does a PKI use symmetric or asymmetric encryption? Explain your answer

What will be an ideal response?

Computer Science & Information Technology