0
What is different between while and if statement in c++???
C++
2 odpowiedzi
+ 3
Mohammad Jafer
The while loop, loops until false.
The if condition is activated if the condition is met.
more info here:
http://www.cplusplus.com/doc/tutorial/control/
+ 3
While is a looping statement.It will execute the statement inside it until the condition becomes false.
If is a decision making statement. It will execute the statement inside it once ,after the decision is made based on the condition.