![]() ![]() This affects how an expression is evaluated. Operator precedence determines the grouping of terms in an expression. ![]() Free Pascal, the compiler we used here, however, supports the following bitwise operators − Operators Please note that different implementations of Pascal differ in bitwise operators. The left operands value is moved right by the number of bits specified by the right operand. ![]() Assume variable A holds 10 and variable B holds 20, then −Ĭhecks if the values of two operands are equal or not, if yes, then condition becomes true.Ĭhecks if the values of two operands are equal or not, if values are not equal, then condition becomes true.Ĭhecks if the value of left operand is greater than the value of right operand, if yes, then condition becomes true.Ĭhecks if the value of left operand is greater than or equal to the value of right operand, if yes, then condition becomes true.īinary Right Shift Operator. Modulus Operator and remainder of after an integer divisionįollowing table shows all the relational operators supported by Pascal. Assume variable A holds 10 and variable B holds 20, then − Arithmetic Operatorsįollowing table shows all the arithmetic operators supported by Pascal. We will discuss the set operators and string operations later. Let us discuss the arithmetic, relational, Boolean and bit operators one by one. Pascal allows the following types of operators − An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |