Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 19th, 2012  |  syntax: None  |  size: 0.36 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. | operator ,    and I operator
  2. int main()
  3. {
  4.     int  w=3, z=7;
  5.     printf("%dn", w++|z++);
  6. }
  7.        
  8. int main()
  9. {
  10.     int x = 10;
  11.  
  12.     // prints 10
  13.     printf("%dn", x++);
  14.     // prints 11
  15.     printf("%dn", x);
  16.  
  17.     x = 10;
  18.     // prints 11
  19.     printf("%dn" ++x);
  20.     // prints 11
  21.     printf("%dn" x);
  22. }
  23.        
  24. int main()
  25. {
  26.     int  w=3, z=7;
  27.     printf("%dn", w++|z++);
  28. }