fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void SWAP(int x, int y)
  6. {
  7. int temp = x;
  8. x = y;
  9. y = temp;
  10. }
  11.  
  12. int main()
  13. {
  14. const char *a = "INFO";
  15. int x = 1, y = 3;
  16. SWAP(x, y);
  17. a += y;
  18. cout << a;
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5272KB
stdin
Standard input is empty
stdout
O