Question #214179

QUESTION 15 

Assume you have the following declaration 

int beta[50]; 

Which of the following is a valid element of beta? 

1. beta['2'] 

2. beta["50 "] 

3. beta[0]

4. beta[50]

QUESTION 16 

Assume the following declarations 

const int NUMROWS = 3; 

const int NUMCOLS = 4; 

int val[NUMROWS][NUMCOLS]={8,16,9,52,3,15,27,6,14,25,2,10}; 

Which statement will change the value of the element with the value 27 to 55. 

1. val[0][1] = 55; 

2. val[1][2] = 55; 

3. val[1][1] = 55; 

4. val[2][1] = 55;


Expert's answer

QUESTION 15

The indexing in arrays start at index 0 to n-1, where n is the size of the array

The correct answer is option 3. beta[0]

QUESTION 16 

The value 27 is in row to 2 and column 3. The correct answer is option 2. val[1][2] = 55;


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS