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 what is meant by high-order and low-order bytes?
What is structure in c language?
What do mean by network ?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
What are the rules for the identifier?
When should I declare a function?
What is the purpose of ftell?
explain what is a newline escape sequence?
Why is c so powerful?
What is the difference between fread buffer() and fwrite buffer()?
What header files do I need in order to define the standard library functions I use?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
Describe explain how arrays can be passed to a user defined function
Can an array be an Ivalue?