Solution 4:
this doesn't work, in fact prints x 21 times due to differences between 1 and 2 's complement.Code:i=0;~i<n;i--
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 69
Thread: Fun C++ ProblemThreaded View
|
Click Here to Expand Forum to Full Width |