What will be the values of k[1] and k[3] after execution of the code fragment below using the data shown?

```
int k[6] = { 0, 0, 0, 0, 0, 0 }; Data: 2 0 1
int n;
for ( int i = 3; i < 6; ++i ) {
cin >> n;
k[n] = i;
}
```


```
k[1] is 5; k[3] is 0
```

Computer Science & Information Technology

You might also like to view...

Explain polling and the two general polling policies.

What will be an ideal response?

Computer Science & Information Technology

Excel fills a column that is too narrow to display its contents with ________ signs

A) pound (#) B) dollar ($) C) plus (+) D) caret (^)

Computer Science & Information Technology

?The larger text placeholder on the title slide is designed to hold a subtitle.

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

Computer Science & Information Technology

PPMT should be used to calculate the specific interest paid on one installment of a loan

Indicate whether the statement is true or false

Computer Science & Information Technology