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 / vaibhav
it's 'b'
becoz for for loop we initialise atleast one statement
| Is This Answer Correct ? | 2 Yes | 13 No |
Post New Answer View All Answers
Is struct oop?
List some of the static data structures in C?
What are the types of i/o functions?
What does struct node * mean?
What is a pointer in c plus plus?
What is the best organizational structure?
What is the difference between void main and main in c?
what is use of malloc and calloc?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What is the difference between #include
Where are local variables stored in c?
Explain what are its uses in c programming?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What does %c mean in c?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10