Prerequisite : Loops in C Q.1 What is the output of this program? Options a)A B C D E A B C D E A… Read More »
Prerequisite : Control Statements Q.1 What is the output of this program? Options a) 0 1 2 … infinite times b) 0 1 2 …… Read More »
Prerequisite : for loop Q.1 What is the output of this program? Options a) compilation error b) Hello c) infinite loop d) none of the… Read More »
Prerequisite: while loop in C/C++ In most computer programming languages, a while loop is a control flow statement that allows code to be executed repeatedly… Read More »
Prerequisite : While loops Q.1 What is the output of this program? Option a) 3 2 1 0 b) 2 1 0 -1 c) infinite… Read More »
Short question based on c loops 1. What will be the output of the following code? options : a) 5 5 b) syntax error c)… Read More »
Below are some interesting facts about C programming: 1) The case labels of a switch statement can occur inside if-else statements. Output : GeeksforGeeks 2)… Read More »
Prerequisite – Switch Statement in C Switch is a control statement that allows a value to change control of execution.
In C switch statement, the expression of each case label must be an integer constant expression.
Which of the following two code segments is faster? Assume that compiler makes no optimizations.
Question: Is there any example for which the following two loops will not work same way?