How to understand this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to understand this?

for(int i = 0; str[i]!='\0'; i++) { if(str[i]==' ') { if(chk!=0) countWord++; chk=0; } else { chk++; } }

3rd Mar 2022, 4:18 PM
DevAbdul
DevAbdul - avatar
2 Answers
0
Dear FF9900 I really don't understand what you mean by marker, can you please elaborate? Thanks
4th Mar 2022, 12:46 PM
DevAbdul
DevAbdul - avatar
0
Thank you for explaining that, but can you please explain to me why we need a marker in the first place?
4th Mar 2022, 12:56 PM
DevAbdul
DevAbdul - avatar