fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main(void) {
  5. char *p;
  6. p="1234567";
  7. fun(p,strlen(p));
  8. puts(p);
  9. return 0;
  10. }
  11. fun(char *w,int n)
  12. {
  13. char t,*s1,*s2;
  14. s1=w;s2=w+n-1;
  15. while(s1<s2)
  16. {
  17. t=*s1++;*s1=*s2++;*s2=t;
  18. }
  19. }
  20.  
Time limit exceeded #stdin #stdout 5s 4248KB
stdin
Standard input is empty
stdout
Standard output is empty