C Tutorials

C else if Clause

Till now we have learnt about the if statement, if-else statement, if-else nested statements and logical operators. Logical operators are good alternatives of nested if-else statements. But there are still some cases when we have to use nested if-else clause. So to make those situations a bit easy, Dennis Ritchie introduced else if clause. What …

C else if Clause Read More »

Logical Operators in C

Nested if-else statement helps in creating multiple choices inside a program. But there are also some disadvantages of using them which are given below. Indentation is most important while using nested if-else statements. But if we add 2 layer nesting inside on if-else block. Then you will notice that your program is creeping towards right. …

Logical Operators in C Read More »

Nested if else in C

Here you will learn about nested if else in C In the previous tutorial we have learnt about if-else statements. Those statements provide the flexibility to check for two possible faces of answer. But it is also possible that there will be more than two options for the answer. To make things more precise, take …

Nested if else in C Read More »

C if-else Statement

Every coin has two faces and this is also true for our problems. Till now we have learnt about if statement in which we can execute a set of statements by giving some condition or expression.But most of time we need to execute one set of statements if the condition is true, and an entirely …

C if-else Statement Read More »

C if Statement – Part 2

In the last tutorial we have learnt about the basic use of decision control instruction using if statement. Today we will extend that tutorial with some advanced examples. A bit more about conditions As I told you earlier that if statement is used with some conditions. Truly speaking it can also be used with some …

C if Statement – Part 2 Read More »

C if Statement – Part 1

Generally we take decisions by looking at the current circumstances. Example: If she says yes then I will dance. If you like this tutorial then I will write the next one too. So, mostly decisions depend on some kind of conditions. C language also uses decision control instructions. It has mainly three decision control instructions. …

C if Statement – Part 1 Read More »