The dumbest thing I ever did
1 2 3 4 5 6 7 8 9 10
|
int main()
{
int *pointer;
while(true)
{
*pointer=0;
pointer=pointer+1;
}
return 0;
}
| |
Then I ran it.
Probably belongs in the Lounge. And I can't imagine it got very far (if anywhere) before the OS got in the way.
The only reason it was stupid was because you didn't use a += operator at line 7.
-Albatross
also this doesn't do anything astounding. It's not like it's a memory leak. you're just gonna get an overflow.
Topic archived. No new replies allowed.