Which of the following is correct with respect to “Jump Statements” in C? (A) goto (B) continue (C) break (D) return (E) All of the… Read More
Tag Archives: C Quiz – 105
A typical “switch” body looks as follows: <br> switch (controlling_expression)<br> {<br> case label1:<br> /*label1 statements*/<br> break;<br> case label2:<br> /*label1 statements*/<br> break;<br> default:<br> /*Default statements*/<br> }<br>… Read More
What would happen when we compile and run this program? <br> #include < stdio.h ><br> int main()<br> {<br> int i; <br> goto LOOP;<br> for (i… Read More
In the context of “break” and “continue” statements in C, pick the best statement. (A) “break” can be used in “for”, “while” and “do-while” loop… Read More
Choose the best statement with respect to following three program snippets. <br> /*Program Snippet 1 with for loop*/<br> for (i = 0; i < 10;… Read More
Courses