+ 1

Why this CPP code is not showing output?

I am doing string reverse using character array. Everything in this code is fine but it does not show output. If any know please answer.. https://code.sololearn.com/cRbE164Jwtev/?ref=app

21st Feb 2020, 5:55 AM
Rajan Mishra
Rajan Mishra - avatar
2 Respostas
+ 2
Please show your code here so that we can help you https://www.sololearn.com/post/75089/?ref=app
21st Feb 2020, 5:59 AM
Gordon
Gordon - avatar
+ 2
Yeah I got it I should have decreased I by 2 and add '\0' to rev string... Thanks..
21st Feb 2020, 6:12 AM
Rajan Mishra
Rajan Mishra - avatar