Use string function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Use string function

Hello everyone! How to make a function that reverse the any word?

21st May 2020, 7:30 PM
Vladimir Kushner
Vladimir Kushner - avatar
5 Answers
+ 1
Cool! And if you use a from the standard library "strrev". I need to solve the Sololearn task.
21st May 2020, 7:38 PM
Vladimir Kushner
Vladimir Kushner - avatar
+ 1
Easy easiest )
21st May 2020, 7:40 PM
Vladimir Kushner
Vladimir Kushner - avatar
+ 1
what is the language?
21st May 2020, 7:48 PM
Gen2oo
Gen2oo - avatar
+ 1
C
21st May 2020, 7:51 PM
Vladimir Kushner
Vladimir Kushner - avatar
+ 1
Loop over your string and print it out letter by letter from the last to the first. Strrev is not a standard C function nowadays.
21st May 2020, 8:57 PM
HonFu
HonFu - avatar