0

Why isn't this code working ? In description....

#include <stdio.h> #include <string.h> int main() { char str[40]; scanf("%s", str); printf("%s ", strrev(str)); return 0; }

5th Dec 2021, 12:31 PM
RD:programmer
RD:programmer - avatar
9 Respuestas
+ 2
strrev is not included in the string header file. You have to make it
5th Dec 2021, 12:35 PM
Slick
Slick - avatar
+ 2
Alright, show me any code of your attempt
5th Dec 2021, 1:01 PM
Slick
Slick - avatar
+ 1
Nah, you gotta make the function yourself
5th Dec 2021, 12:39 PM
Slick
Slick - avatar
+ 1
Lol, you didn't even try and make the function. Do that in the playground, save it, and post a link to it here please.
5th Dec 2021, 1:04 PM
Slick
Slick - avatar
0
What to do now ?
5th Dec 2021, 12:38 PM
RD:programmer
RD:programmer - avatar
0
#include <strrev.h> brings error in code ...
5th Dec 2021, 12:39 PM
RD:programmer
RD:programmer - avatar
0
Help me to do this friend
5th Dec 2021, 1:00 PM
RD:programmer
RD:programmer - avatar
0
That is in description...
5th Dec 2021, 1:03 PM
RD:programmer
RD:programmer - avatar
0
Holy jeez, just look at this code. Especially the bottom function and then when you understamd it, incorperate it in your own way https://code.sololearn.com/c7AuJ95and2Z/?ref=app
5th Dec 2021, 2:30 PM
Slick
Slick - avatar