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
What is typedef example?
Write a program to show the change in position of a cursor using c
What is a void pointer in c?
What is pointer to pointer in c language?
Difference between goto, long jmp() and setjmp()?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
What is signed and unsigned?
write a program that will open the file, count the number of occurences of each word in the the complete works of shakespeare. You will then tabulate this information in another file.
Why do we use c for the speed of light?
What is a pointer value and address in c?
What are the features of c languages?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
What is c language and why we use it?
What is the -> in c?
What is #define size in c?