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 […]
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 […]
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, […]
This is a conditional statement used in C to check condition or to control the flow of execution of statements. This is also called as ‘decision making statement or control statement.’ The execution of a whole program is done in one direction only. If statement is used to validate only one condition i.e only one […]
Operators are special symbols used for specific purposes. An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. The various types of operators are: Arithmetical operators Assignment operators Increment/Decrement Operators Logical operators Relational operator Conditional operators Bitwise Operators Special operators
A token is a group of characters that logically belong together. The programmer can write a program by using tokens. Various C tokens used are: Keywords Identifiers Literals Punctuators Operators.