What is i after the following for loop?
```
int y = 0;
for (int i = 0; i < 10; ++i) {
y += i;
}
```
a. 9
b. 10
c. 11
d. undefined
d. undefined
he scope for i is inside the loop. After the loop, i is not defined. So, the correct answer is D.
Computer Science & Information Technology
You might also like to view...
Bold, italic, and underline are example of text effects
Indicate whether the statement is true or false
Computer Science & Information Technology
In a calculated control, the selected field names are surrounded by:
A) double quotes. B) braces. C) square brackets. D) single quotes.
Computer Science & Information Technology