What is the final value of x when the code int x; for(x=0; x<10; x++) {} is executed?

1.8 What is the final value of x when the code int x; for(x=0; x<10; x++) {} is executed?
A) 10
B) 9
C) 0
D) 1

Leave a Reply