Show the output of the following code:
```
#include
using namespace std;
class Count
{
public:
int count;
Count(int c)
{
count = c;
}
Count()
{
count = 0;
}
};
void increment(Count c, int times)
{
c.count++;
times++;
}
int main()
{
Count myCount;
int times = 0;
for (int i = 0; i < 100; i++)
increment(myCount, times);
cout << "myCount.count is " << myCount.count;
cout << " times is " << times;
return 0;
}
```
myCount.count is 0 times is 0
You might also like to view...
The person on an e-list responsible for enforcing behavior rules is called a(n) ________
A) administrator B) moderator C) subscriber D) reflector
Most database designers use Datasheet view to create tables
Indicate whether the statement is true or false