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
What standard functions are available to manipulate strings?
What would be an example of a structure analogous to structure c?
What does the && operator do in a program code?
Explain the difference between structs and unions in c?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
Difference between malloc() and calloc() function?
write a program to concatenation the string using switch case?
What does #pragma once mean?
What's a good way to check for "close enough" floating-point equality?
What is the benefit of using an enum rather than a #define constant?
What does void main return?
Can we compile a program without main() function?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
What is non linear data structure in c?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;