What is the diffrent between while and do while statement ?
Answer Posted / ashok
(1)while loop is known as entry control loop.
and do while is known as exit control loop.
(2)in while loop first check given the condition & if it is
true then execute all statement of while loop.if it is
false then terminate control from loop.
and in do while loop first execute all statement of it and
then check condition, if yes it is true, then again do
while loop will execute, if it is false then terminate
control from loop,put semicolon after while statement.
Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
how we can make 3d venturing graphics on outer interface
Why is c called c?
What does p mean in physics?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What is the use of ?: Operator?
Is array a primitive data type in c?
What is the most efficient way to store flag values?
How can I do serial ("comm") port I/O?
How many levels of indirection in pointers can you have in a single declaration?
what are bit fields in c?
How to explain the final year project as a fresher please answer with sample project
What does %c mean in c?
Explain the advantages of using macro in c language?
What is an lvalue?
What is identifiers in c with examples?