fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a=3,b=5;
  5. swap(a,b);
  6. printf("a=%d b=%d",a,b);
  7. // your code goes here
  8. return 0;
  9. }
  10. void swap(int a, int b){
  11. int w;
  12. w=a;
  13. a=b;
  14. b=w;
  15. }
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
a=3 b=5