Networking, Programming and Graphics Tutorials

The while statement - C++ [1/1]

Type:
The while statement - C++
Level: Beginner Networking, Programming and Graphics Tutorials 
The while statement - C++
Date: 2006-Dec-04
The while statement - C++
Visited: 2317 times
The while statement - C++
Rating: The while statement - C++
The while statement - C++
Author: Alex Plumpton

The working of the while statement is as follows. First, the test condition is evaluated. If the test condition returns true, then the body of the loop is executed. Again, the test condition is evaluated and the body of the loop gets executed till the test condition returns false. If the test condition returns false, then the control gets transferred to the statement next to the while statement. The general format of the while statement is shown in the figure.

The while statement - C++
Rate this tutorial:                    
Networking, Programming and Graphics Tutorials - The while statement - C++ [1/1] - Networking, Programming and Graphics Tutorials

Need a specific tutorial? Do not hesitate and submit a request!
Related Tags: syntax for statement c++ for statement  for statement and do-while statement in c++ language  c++ else statement  "do while statement C++"  if statement c++  The if statement c++  while statement in C++  if else statement in c++  if statement c++  c++ if else statement  c++ while statement  c++ if statement  do - while statement in c++  the for statement in c++  for statement in c  do while statement in c++  the for statement in c++  the for statement in c++  c++ for statement  if statement c++