Why doesn’t output the last word? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
14th Oct 2018, 2:31 PM
Storm_CR
Storm_CR - avatar
3 Answers
+ 3
Line 20: change for(int i = 0; i<sz; i++) to for(int i = 0; i<=sz; i++)
14th Oct 2018, 2:39 PM
Anna
Anna - avatar
+ 2
Anna, thanks
14th Oct 2018, 2:41 PM
Storm_CR
Storm_CR - avatar
+ 2
No problem
14th Oct 2018, 2:43 PM
Anna
Anna - avatar