fork download
  1. #include <stdio.h>
  2. int main(){
  3. int a=10;
  4. int b=20;
  5. a=a+b;
  6. b=a-b;
  7. printf("swapped num are %d %d a, b");
  8. return 0;
  9. }
  10.  
  11.  
Success #stdin #stdout 0s 5280KB
stdin
10 20
stdout
swapped num are  -336459000 1345433952 a, b