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 8
b. i is 6 j is 6
c. i is 6 j is 9
d. i is 6 j is 7
a. i is 6 j is 8
You might also like to view...
If you run out of disk space, Windows displays a(n) "Disk Full" message.
Answer the following statement true (T) or false (F)
The standard currency unit in the United States is the U.S. ________
Fill in the blank(s) with correct word
Today, the backbone of Windows network operation is based on NetBEUI.
Answer the following statement true (T) or false (F)
In the hashing implementation of a dictionary, the data field of each node in a chain contains an Entry object.
Answer the following statement true (T) or false (F)