+ 1

How can i do string reverse without using string method or any loop in C language ?

String Reverse

16th Mar 2018, 4:03 AM
Girish Nagar
Girish Nagar - avatar
2 ответов
+ 14
1 line recursion , easy , just take String & its k=length-1 as parameters & return character at index k + method(String,--k) .... work till k becomes 0 at last //I already made that in java , U can search for my answers , hope U will find it ... else I telled U idea ... just make it
16th Mar 2018, 5:21 AM
Gaurav Agrawal
Gaurav Agrawal - avatar