What is the value of a after execution of the following code?

int a = 10;
for (int ctr = 0; ctr < 4; ctr++)
a = a – 1;
a = a + 3;

a) 8
b) 9
c) 18
d) 20

b) 9

Computer Science & Information Technology

You might also like to view...

What is chromatic aberration?

What will be an ideal response?

Computer Science & Information Technology

Figure PPT 6-1 What is the arrow pointing to in the accompanying figure?

A. Comment balloon B. Comment thumbnail C. New Comment button D. Shortcut menu

Computer Science & Information Technology