C Operators Flashcards
1
Q
+
A
Addition
2
Q
+
A
Addition
3
Q
-
A
Subtract
4
Q
*
A
Multiply
5
Q
/
A
Divide
6
Q
%
A
Modulus
7
Q
++
A
Increment
8
Q
–
A
Decrement
9
Q
==
A
Equal
10
Q
!=
A
Not equal
11
Q
>
A
Greater than
12
Q
> =
A
Greater than equal
13
Q
<=
A
Less than equal
14
Q
&&
A
Logical AND
15
Q
||
A
Logical OR
16
Q
!
A
Logical NOT
17
Q
? :
A
Logical ternary
18
Q
&
A
Bitwise AND
19
Q
|
A
Bitwise OR
20
Q
A
Bitwise XOR
21
Q
~
A
Bitwise one’s complement
22
Q
> >
A
Bitwise shift right
23
Q
=
A
Assignment equal
24
Q
+=
A
Assignment plus-equal
25
Q
-=
A
Assignment minus-equal
26
Q
*=
A
Assignment multiply-equal
27
Q
/=
A
Assignment divide-equal
28
Q
%=
A
Assignment modulus-equal
29
Q
«=
A
Assignment shift-left-equal
30
Q
> > =
A
Assignment shift-right-equal
31
Q
&=
A
Assignment AND-equal
32
Q
^=
A
Assignment XOR-equal
33
Q
|=
A
Assignment OR-equal
34
Q
sizeof()
A
Get the size of
35
Q
[]
A
array subscript
36
Q
&
A
The address of