Code coach challenge | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Code coach challenge

1 test case failed. Any explanation as to why? https://code.sololearn.com/cRAVLjwNl0KK/?ref=app https://www.sololearn.com/coach/51?ref=app

11th Jan 2021, 4:47 PM
Justus
Justus - avatar
4 Answers
+ 5
just add rstr[len]='\0'; before printf("%s",rstr); it marks the end of the string.
11th Jan 2021, 5:15 PM
John Robotane
John Robotane - avatar
+ 1
11th Jan 2021, 5:21 PM
Justus
Justus - avatar
0
can you post the code coach description?
11th Jan 2021, 4:57 PM
John Robotane
John Robotane - avatar
0
John Robotane Extra Terrestrial
11th Jan 2021, 5:07 PM
Justus
Justus - avatar