What is displayed by the following code fragment if all the variables are of type int?

```
k = 0;
m = 0;
for (p = 0; p < 10; p = p + k) {
k = k + 1;
m = m + p;
printf("%4d%4d%4d\n", p, k, m);
}
```

0 1 0
1 2 1
3 3 4
6 4 10

Computer Science & Information Technology

You might also like to view...

In an inheritance relationship, the class that is inherited from is called the:

A. child class B. base class C. virtual class D. derived class

Computer Science & Information Technology

Under what circumstances would you not provide a parameter name when defining the type of the object that will be caught by a handler?

What will be an ideal response?

Computer Science & Information Technology