Question
Question 1 When referring to an element of a two-dimensional array, the first subscript refers to the elements ____. a. column position c. row position
Question 1 When referring to an element of a two-dimensional array, the first subscript refers to the elements ____. a. column position c. row position b. name d. memory location Question 2 ____ assigns a user-entered value to the element located in the third row, second column of the grades array. a. cin >> grades[2][1]; c. cin << grades[3][2]; b. cin >> grades[3][2]; d. cin << grades[2][1]; Question 3 Variables located in the first row in a two-dimensional array are assigned a row subscript of ____. a. NULL c. 0 b. -1 d. 1 Question 4 ____ declares and initializes a three-row, two-column char array named grades. a. char grades[3][2] = {{'A', 'A'},{'B', 'C'},{'D', 'B'}}; b. char grades[2,3] = {{'A', 'A'},{'B', 'C'},{'D', 'B'}}; c. char grades[3,2] = {{'A', 'A'},{'B', 'C'},{'D', 'B'}}; d. char grades[2][3] = {{'A', 'A'},{'B', 'C'},{'D', 'B'}};
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started