code_junkie

Combined post-operators?

Nov 11th, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. c++; // c = c + 1
  2. ++c; // ditto
  3.  
  4. c += 5; // c = c + 5
  5. s .= ", world"; // s = s . ", world"; e.g. PHP
  6.  
  7. s =. "Hello "; // s = "Hello " . s
  8.  
  9. a=-5; //'a = -5' or 'a =- 5'?
  10. b=*p; //'b = *p' or 'b =* p'?
  11. c=.5; //'c = .5' or 'c =. 5'?
  12.  
  13. x=x+1;
  14.  
  15. x+=1;
  16.  
  17. x++;
Add Comment
Please, Sign In to add comment