

InterviewSolution
Saved Bookmarks
1. |
Why do we use "str[i]!=0 " In a for loop ???? |
Answer» We use it to run the loop till 0 . Loop stops when it is equal to 1<br>It depend on question but to stop a loop from executing when a null character arrrive we use condition str[i]!=\'\\0\';<br>I m not C++ student...I m python student | |