The code above and below gives the same output.Code:for (int i = 0; i<=12; i++) cout << i << endl;
0
1
2
.
.
12
But i think it should start output from 1 for the code below.
Code:for (int i = 0; i<=12; ++i) cout << i << endl;
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 15
Threaded View
|
Click Here to Expand Forum to Full Width |