C Operators

Arithmetic Operators

C programming language supports almost common arithmetic operator such as +,-,* and modulus operator %

C Assignment Operators

C assignment operators are used to assigned the value of a variable or expression to a variable.

C Bit-wise Operators

Bit-wise operators interpret operands as strings of bits. Bit operations are performed on this data to get the bit strings

C Increment Operators

We can use increment operator to increase or decrease the value of variable. C increment operators support in both prefix and postfix form.

C Logical Operators

Logical operators allow us to combine relational operators or logical operators into one Boolean result. C programming language supports the negation (!), logical AND (&&), and logical OR (||).

C Relational Operators

Relational operators in C programming language are used in Boolean conditions or expression and returns true or false.

C Ternary Operator

C ternary operator is a shorthand of combination of if and return statement.

source:cprogramlanguage.net

No comments:

Post a Comment