fork download
  1. #include<stdio.h>
  2.  
  3.  
  4. int main()
  5. {
  6. char i[20];
  7.  
  8. printf("enter name");
  9. scanf("%s",i);
  10. strrev(i);
  11. printf("enter reversed name:%s",i);
  12.  
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘main’:
prog.c:10:5: warning: implicit declaration of function ‘strrev’ [-Wimplicit-function-declaration]
     strrev(i);
     ^~~~~~
/home/ntFOjp/ccNfDI1S.o: In function `main':
prog.c:(.text.startup+0x2a): undefined reference to `strrev'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty