Which of the following is not an infinite loop ?
a.while(1){
....
}
b.for(;;){
...
}
c.x=0;
do{
/*x unaltered within theloop*/
...
}while(x==0);
d.# define TRUE 0
...
while(TRUE){
....
}
Answer Posted / prem
Hai Deepa,You are Absolutely right.d is the right
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What are the loops in c?
Explain the use of 'auto' keyword in c programming?
What 'lex' does?
If the size of int data type is two bytes, what is the range of signed int data type?
What will the preprocessor do for a program?
In which header file is the null macro defined?
Explain built-in function?
What is the difference between a function and a method in c?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Why we use break in c?
How can you find the day of the week given the date?
Tell me the use of bit field in c language?
What is break statement?
What is a memory leak? How to avoid it?
how to count no of words,characters,lines in a paragraph.