The following program invokes p() three times. What is the printout from the last call of p()?

```
#include
using namespace std;

int j = 40;

void p()
{
int i = 5;

static int j = 5;
i++;
j++;

cout << "i is " << i << " j is " << j << endl;
}

int main()
{
p();
p();
p();
}
```

a. i is 6 j is 6
b. i is 6 j is 7
c. i is 6 j is 9
d. i is 6 j is 8

d. i is 6 j is 8

Computer Science & Information Technology

You might also like to view...

What does the Set Poster Frame option do?

A) It allows you to choose frames to embed on various slides in the presentation. B) It allows you to choose a frame of the video as an outline box of the video on the slide. C) It enables you to select a frame from the video to display on the slide. D) It enables you to set automatic timing for the video.

Computer Science & Information Technology

In a master/slave system, the master processor is responsible for managing the entire system-all files, devices, memory, and processors.

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

Computer Science & Information Technology