fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main()
  5. {
  6.  
  7. char str[100] ;
  8.  
  9. printf(str);
  10.  
  11. int len = strlen(str);
  12. for (int i = 0, j = len - 1; i <= j; i++, j--) {
  13.  
  14. char c = str[i];
  15. str[i] = str[j];
  16. str[j] = c;
  17. }
  18.  
  19. printf(str);
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
Standard output is empty