+ 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
3 Answers
+ 1
BEN_10 thanks man!
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...