See the bottom for how to submit your work.
|
|
int p;
p = 1;
cout << &p << endl;
{
int p;
cout << &p << endl;
}
cout << &p << endl;
1 in the first line of the output.
|
|
| Year | divisible by 4? | divisible by 100? | divisible by 400? | Is leap year? |
| 703 | no | no | no | not leap year |
| 704 | yes | no | no | leap year |
| 700 | yes | yes | no | not leap year |
| 800 | yes | yes | yes | leap year |
$ ./hw Enter year: 703 Is Not Leap Year $ ./hw Enter year: 704 Is Leap Year
~/bin/submit -c=IC210 -p=hw05 hw.cpp