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 / krishna kumar

ya deepa is ryt.
true here equals zero...which is false.
so the correct answer is D.

Is This Answer Correct ?    23 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define Array of pointers.

629


Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;

603


What are near, far and huge pointers?

640


How can I send mail from within a c program?

577


What is the purpose of clrscr () printf () and getch ()?

591






In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.

1372


Explain the use of fflush() function?

622


Explain argument and its types.

594


What is wrong with this statement? Myname = 'robin';

812


Create a simple code fragment that will swap the values of two variables num1 and num2.

802


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2689


What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1345


What is 2 d array in c?

546


How many levels of indirection in pointers can you have in a single declaration?

589


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

2234