Difference between while and do...while statements

Difference between while and do...while statements


                while is an entry control statement. so if the test condition is false the loop will not be executed.
               
                do ….while is an exit control statement. So irrespective of the condition value, the body of the loop will be executed atleast once. 

No comments:

Post a Comment

Creating Objects

Creating Objects                  Creating objects means to allocate memory space for all the instance variables of the objects. S...