+ 1

Please help me understand

This code is to receive an input(word) from the user. Then it reverses the word backwards. I understand up until scanf portion which receives the word for (s). Anything after that is confusing to me. I can’t understand how it’s being executed. https://code.sololearn.com/cWmv92CP7qj5/?ref=app

8th Jan 2020, 12:21 AM
Charlie
Charlie - avatar
3 Respuestas
+ 1
BEN_10 thanks man!
9th Jan 2020, 5:10 AM
Charlie
Charlie - avatar
0
In while loop, the calculation of no.of charecters in input is going on. In for loop, in another array, he is copying input last element into a new array as a first element, and last but two to 2nd element..... Simply just copying in reverse of input...
8th Jan 2020, 7:30 AM
Jayakrishna 🇮🇳