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

Explain how can I make sure that my program is the only one accessing a file?

635


write a program to rearrange the array such way that all even elements should come first and next come odd

1766


Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.

2651


How do we open a binary file in Read/Write mode in C?

685


State the difference between realloc and free.

641






Why do we use static in c?

636


What are structure types in C?

677


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

610


Explain how can I pad a string to a known length?

661


What should malloc(0) do?

619


What is structure pointer in c?

577


write a c program for swapping two strings using pointer

2098


How to implement a packet in C

2401


What is scope rule in c?

609


What is the difference between a string and an array?

711