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
Explain how do you use a pointer to a function?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
What is hash table in c?
What is static and volatile in c?
#include
How a string is stored in c?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What are examples of structures?
What is pointers in c?
Is return a keyword in c?
What is string length in c?
Why do some versions of toupper act strangely if given an upper-case letter?
Can we declare variable anywhere in c?
Using which language Test cases are added in .ptu file of RTRT unit testing???
How can you draw circles in C?