fork download
  1. #include <stdio.h>
  2.  
  3. int myStrlen(char* s){
  4. int i=0;
  5. while(*s !='\0'){
  6. i++;
  7. *s = *s + 1;
  8. }
  9.  
  10. return i;
  11. }
  12.  
  13. int main(void) {
  14. // your code goes here
  15. int k = myStrlen("123");
  16. printf("%d", k);
  17.  
  18.  
  19. return 0;
  20. }
  21.  
Runtime error #stdin #stdout 0s 9280KB
stdin
Standard input is empty
stdout
Standard output is empty