Is anyone familiar with the "Goes-To" operator? Consider the following code:
#include <stdio.h>
int main(int argc, char* argv[])
{
int x = 10;
while( x --> 0 ) // x goes to 0
{
printf("%d ", x);
}
return 0;
}
This actually compiles and runs (seriously). Source:
http://stackoverflow.com/questions/1642028/what-is-the-name-of-this-operator
In all seriousness, there is no "Goes-To" operator in C/C++. The "x -->" in that code is equivalent to "x-- >". I wouldn't have thought that a C/C++ parser would consider that valid, but it turns out that it is valid - I was able to compile and run that code.
Someone I used to work with sent me that.. I thought it was amusing. :)
Nightfox
---
þ Synchronet þ Digital Distortion: digitaldistortionbbs.com