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 / deepa
d
Is This Answer Correct ? | 44 Yes | 2 No |
Post New Answer View All Answers
Write a program to reverse a linked list in c.
What are Macros? What are its advantages and disadvantages?
GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)
What do you understand by friend-functions? How are they used?
Difference between goto, long jmp() and setjmp()?
How do you determine the length of a string value that was stored in a variable?
What is data types?
What is c standard library?
What is meant by initialization and how we initialize a variable?
What are the two forms of #include directive?
FILE PROGRAMMING
What is volatile variable in c with example?
Is sizeof a keyword in c?
What is a constant and types of constants in c?
When should structures be passed by values or by references?