What is the diffrent between while and do while statement ?
Answer Posted / mahfooz
while(//condition checking)
{//if condition is true go inside loop.and its first check
condition then go inside loop.
}
but in do{
}while(//condition checking)..
it wiil go in loop first and then check condition..
it will go iside loop atleast one time..but in while it
may not go even in single time..
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
Give the rules for variable declaration?
What is structure data type in c?
How is a pointer variable declared?
Is it better to bitshift a value than to multiply by 2?
Explain how can you determine the size of an allocated portion of memory?
What are the salient features of c languages?
plz let me know how to become a telecom protocol tester. thank you.
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
where are auto variables stored? What are the characteristics of an auto variable?
what is the structure pointer?
Write a program to print factorial of given number using recursion?
How to write a code for reverse of string without using string functions?
What is the modulus operator?
What are the two types of structure?
Explain how can I write functions that take a variable number of arguments?