What will be the value of x after the following statements are executed?

```
int x = 10;
for (int y = 5; y < 20; y +=5)
x += y;
```

a. 25
b. 30
c. 50
d. 40

d. 40

Computer Science & Information Technology

You might also like to view...

If we store the address of grade[0] in a pointer named gPtr (using the assignment statement gPtr = &grade[0];), then, the expression ____ references grade[0].

A. gPtr(0) B. gPtr C. &gPtr D. *gPtr

Computer Science & Information Technology

From within Word, you can search through various forms of reference information.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology