No products in the cart.

Why do we use "str[i]!=0 " …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Why do we use "str[i]!=0 " In a for loop ????
  • 3 answers

Anurag Patidar 5 years, 10 months ago

We use it to run the loop till 0 . Loop stops when it is equal to 1

Aman Kumar 5 years, 10 months ago

It depend on question but to stop a loop from executing when a null character arrrive we use condition str[i]!='\0';

Aman Kumar 5 years, 10 months ago

I m not C++ student...I m python student
http://mycbseguide.com/examin8/

Related Questions

Define packages
  • 0 answers
Write a program for swapping two numbers
  • 1 answers
What is alu
  • 1 answers
Write a program for swapping two numbers?
  • 0 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App