[ CnUnix ] in KIDS 글 쓴 이(By): navs (납스) 날 짜 (Date): 2010년 10월 26일 (화) 오후 08시 20분 23초 제 목(Title): [C++] "-->" operator http://stackoverflow.com/questions/1642028 Fun 보드에 올려야 할지... What is the name of this operator: “-->”? After reading this post on comp.lang.c++.moderated, I was completely surprised that it compiled and worked in both VS 2008 and G++ 4.4. The code: #include <stdio.h> int main() { int x = 10; while( x --> 0 ) // x goes to 0 { printf("%d ", x); } } Where in the standard is this defined, and where did it come from? I'd assume C, since it works in GCC as well, but I put C++ on there just in case C++ has more to mention on it. On a more subjective note, I've never heard of this before, had anybody else? Is it worth using? |