This post is just an overview on the various operators which are supported by MikroC . Have a look one after the other.

They are used to perform the arithmetic operations.

- Arithmetic Operators
- Relational Operators
- Logical Operators
- Bitwise Operators
- Assignment Operators
- Conditional Operators
- Preprocessor Operators

__ARITHMETIC OPERATORS:__
Arithmetic operators are similar to that of C language and look the table given below which are self explanatory.

OPERATOR |
OPERATION |

+ |
Addition |

- |
Subtraction |

* |
Multiplication |

/ |
Division |

% |
Integer division (Remainder) |

++ |
Auto increment |

-- |
Auto decrement |

__RELATIONAL OPERATORS:__OPERATOR |
OPERATION |

== |
Equal to |

!= |
Not equal to |

> |
Greater than |

< |
Less than |

>= |
Greater than or equal to |

<= |
Less than or equal to |

To compare any two variables these operators are used.

__LOGICAL OPERATORS:__OPERATOR |
OPERATION |

&& |
AND |

|| |
OR |

! |
NOT |

Logical operators are used to check the statements and take corresponding step.

For example if we want to check two variable conditions i.e if A and B are true then do some C in this case we use AND operator. Ether A is true or B is true then do some C then OR operator is used. If A is not true then do some C then we use NOT operator.

__BITWISE OPERATORS:__OPERATOR | OPERATION |

& | Bitwise AND |

| | Bitwise OR |

^ | Bitwise EXOR |

~ | Bitwise Complement |

<< | Shift Left |

>> | Shift Right |

Bit wise operators are used to perform the bitwise operations. It is similar to that of instructions ANL , ORL, etc which we have seen in Assembly language before.

__ASSIGNMENT OPERATOR:__
Simplest assignment operator is equal to =

Other assignment operators supported by mikroC are shown below

+= , - = , * = , / = , so on...

__CONDITIONAL OPERATOR:__
Result = Exp1? Exp2 : Exp3

If Expression1 is true then Result = Exp2 , if Expression1 is false then Result = Exp3

__PREPROCESSOR OPERATOR:__
Preprocessor commands which are supported by mikroC are

#define #undef

#if #elif #endif

#ifdef #ifndef

#error

#line

Only few of them will be used in our programming , we will look at that instant.

**AUTHOR: YOUSTRON SIC**

## 1 comments:

The formal regulated education sector in India broadly comprises of schools (often classified as K-12 - kindergarten to 12th) and higher education institutions. While India has been proactive on liberalization, the education sector has remained largely untouched by the reforms process.Archaic legislations mandate all formal educational institutions in India to be run as 'not-for-profit' centres by not-for-profit entities viz. a society, trust or a section 25 company.academic writing

## Post a Comment