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
Define Array of pointers.
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
What are near, far and huge pointers?
How can I send mail from within a c program?
What is the purpose of clrscr () printf () and getch ()?
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.
Explain the use of fflush() function?
Explain argument and its types.
What is wrong with this statement? Myname = 'robin';
Create a simple code fragment that will swap the values of two variables num1 and num2.
What is the difference between declaring a variable by constant keyword and #define ing that variable?
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);
What is 2 d array in c?
How many levels of indirection in pointers can you have in a single declaration?
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