Note 1

Take Note:

Take a note while surfing.





Note With Ink

Give your Note a Colorful Tag.




Easy to Access

Stay on same information and in Sync wherever you are.

Note 2

Take Note:

Organize your information,It may take Shape.





Think With Ink

Differ your Content by Color.




Easy to Access

Easy to pull up your content from anywhere anytime.

Note 3

Take Note:

Don't Let information to miss,Because it take shape





Note With Ink

Simple an Easy Way to take a note.




Easy to Access

Get the same in next visit.

C Programming :: Loop Control

Home > C Programming > Loop Control > General Questions

51. What is the output of the following program

int main ()
{
unsigned int i;
for (i = 10; i >= 0; i--)
printf ("%d", i);
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option C

Explanation:

Here is no explanation for this answer

Workspace

Tags:

No Tags on this question yet!

52. How many x's are printed?

for (i = 0, j = 10; i < j; i++, j--)
printf ("x");

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace

Tags:

No Tags on this question yet!

53. Consider the following iterative implementation to find the factorial of a number.

int main()
{
int n = 6, i;
int fact = 1;
for(i=1;i<=n;i++)
_________;
printf("%d",fact);
return 0;
}
Which of the following lines should be inserted to complete the above code?

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Capgemini 

54. What is the output of the following 'C' program ?

#include
int main()
{
int i;
for(i=0;i++;i<100)
printf("hello world\n");
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option B

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Global Edge 

55. What is the output of the following 'C' program ?

#include
int main()
{
int i;
for(i=1;i++;i<100)
printf("hello world\n");
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option C

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Global Edge 

56. What is the output of the following 'C' program ?

#include
int main()
{
int i;
for (i=7;i<=0;i--)
printf ("hello\n");

}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option D

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Global Edge 

57. What is the output of the following code ?

int main( )
{
for( ; ;);
printf("Hello\n");
return 0;
}

View Answer | Discuss in Forum | Workspace | Asked In |

Answer: Option C

Explanation:

Here is no explanation for this answer

Workspace

Tags:

Global Edge