Switch statement is a substitute for long if statements that compare a variable to several “integral” values (“integral” values are simply values that can be expressed as an integer, such as the value of a char). The value of the variable given into switch is compared to the value following each of the cases, and […]

Read More »

C language also helps you to use an if statement within other if statement. This is refer as Nested If statement. It is a conditional statement which is used when we want to check more than one conditions at a time in a same program. The conditions are executed from top to bottom checking each […]

Read More »

Else If statement provides us the way to use many If statements in a single program. This sequence of if statements is the most general way of writing a multi-way decision. The expressions are evaluated in order; if an expression is true, the statement associated with it is executed, and this terminates the whole chain. As always, the code for each statement is either a […]

Read More »

In the last article, we have studied about the if statement, this article leads to the extension of the if statement that also can be used while solving any problem. So far we have read that if statement is used to check only one condition. If condition is true then following statement will be executed, […]

Read More »

Home | Contact Us | Sitemap