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 […]
Category: C Tips
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 […]
Decision making is one of the most important concepts of computer programming. As the name suggests “Decision Making” , we means to state that we will be making certain decisions to carry out different operations. These decisions making strategies are same as we come across in our daily life. But here we will be using […]
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.