by Dinesh Thakur Category: Operator

An operator is a symbol which helps the user to command the computer to do a certain mathematical or logical manipulations. Operators are used in C language program to operate on data and variables. C has a rich set of operators which can be classified as

by Dinesh Thakur Category: Operator

**Example: **Suppose in byte that has a value 10101101 . We wish to check whether bit number 3 is ON (1) or OFF (0) . Since we want to check the bit number 3, the second operand for AND operation we choose is binary 00001000, which is equal to 8 in decimal.

by Dinesh Thakur Category: Operator

**}**The operators present in prefix and postfix are

- prefix increment operator denoted by ++
- prefix decrement operator denoted by --
- postfix increment operator
- postfix decrement operator

by Dinesh Thakur Category: Operator

An operator is a symbol which helps the user to command the computer to do a certain mathematical or logical manipulations. Operators are used in C language program to operate on data and variables. C has a rich set of operators which can be classified as

by Dinesh Thakur Category: Operator

When a division is performed the remainder of the operation is given by modulus operator. The modulus operator is denoted in c by symbol %. Say for instance we have two integer values x and y and then the operation x % y called as x modulus y gives the result as (x- (x / y) * y). Say if x=18 and y =5 the x % y gives value as (18- (18 / 5) * 5) which gives (18-15) which results in 3 in other words the remainder of the division operation.

by Dinesh Thakur Category: Operator

The ++ operator is called the increment operator. When the operator is placed *before *the variable (++var), the variable is incremented by 1 before it is used in the expression. When the operator is placed *after *the variable (var++), the expression is evaluated, and then the variable is incremented by 1.

by Dinesh Thakur Category: Operator

When number of operators occurs in an expression the operator which is to be evaluated first is judged by applying priority of operators. The arithmetic operators available in C are

+ used for Addition

- used for Subtraction

* used for Multiplication

/ used for Division

by Dinesh Thakur Category: Operator

Boolean operators AND, OR, and NOT are used to manipulate logical statements. Boolean operators are the core operators used in digital control systems as well as computer systems. AND and OR are binary operators, while NOT is a unary operator. Let *A *and *B *be two logical statements or variables representing logical statements. If a logical statement is *true *it may be assigned the value 1, and if a logical statement is *false *it may be assigned the value 0. Table gives details of the three operators AND, OR, and NOT.

by Dinesh Thakur Category: Operator

All the objects that are stored in a computer are ultimately converted into binary numbers which are sequences of 0s and 1s. Each digit in a binary number is stored on one bit of the computer memory. A *bit *is defined as the smallest unit of memory in a computer. In fact, computer manipulates a number by manipulating the bits on which the number is stored. In control systems also we often need to use operators to manipulate bits.

About Dinesh Thakur

Dinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.

Search Content

Popular Article

#### Define Operator, Operand, and Expression in 'C'

#### Which bitwise operator is suitable for checking whether a particular bit is ON or OFF

#### How does the prefix and postfix operator on expression

#### Define different types of Operators.

#### What is the functionality and restrictions of Modulus Operator

#### What is the difference between ++var and var++

#### What is Precedence of Operators

#### Boolean Operators in C

#### Bitwise Operators in C

#### sizeof() operator in C

#### Composite Assignment Operators in C

#### Relational and Equality Operators

#### Arithmetic Operators in C

#### Logical Operators in C

#### What is Operators in C language?

#### What is Precedence and Associativity of Operators?

#### What is conditional expression operator(ternary operator)?

#### What is Arithmetic operator in C language?

#### Assignment Operator in C

#### Const and volatile Qualifiers in C

Basic Courses

Advance Courses