+ 2
Why strrev function is not working at sololearn ide ?
#include <stdio.h> #include <string.h> int main() { char s[50]; gets(s); printf("%s",strrev(s)); return 0; }
6 Réponses
+ 3
The thing is, strrev is only defined on a windows machine.
Sololearn runs the code on a linux machine, however, if you try to run the code often enough you will eventually run it in a windows machine ( for some reason ) and then it will work.
I guess Rowsej just got lucky there, because it took me around 20 tries.
+ 2
Works perfectly for me...
+ 2
Really
+ 2
Copy the code and try it
+ 2
Yes I tried it. I gave hello as the input and got olleh as the output!
+ 2
But not working for me.