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...
Accessibility technologies can assist nonvisual users by adapting the display
Indicate whether the statement is true or false.
Computer Science & Information Technology
CSS supports styles to define both the text and ______ color for each element on your page.
A. font B. background C. style D. forecolor
Computer Science & Information Technology