Given the array: int hours[8];
which for loop will cycle through each value correctly and assign the values: 1, 2, 3, 4, 5, 6, 7, 8 ?
```A. for(int i=0; i<8; ++i);
{ hours[i] = i; }
B. for(int i=0; i<8; ++i){ hours[i+1] = i; }
C. for(int i=0; i<8; ++i){ hours[i] = i + 1; }
D. for(int i=0; i<7; ++i){ hours[i] = i + 1; }```
C
Computer Science & Information Technology
You might also like to view...
The headers and footers for a chart sheet can be set at the same time as the worksheet pages
Indicate whether the statement is true or false
Computer Science & Information Technology
One can complete the three-way handshake and open a successful TCP connection with spoofed IP addresses.
a. true b. false
Computer Science & Information Technology