-
Notifications
You must be signed in to change notification settings - Fork 152
Operators
Silver edited this page Aug 24, 2020
·
3 revisions
- ++ (prefix and suffix)
- -- (prefix and suffix)
- * (get the value of address)
- & (get the address of variable)
- !
- ~
- sizeof
- -
- []: only for get the value of NSArray or NSDictionary. ( id a = b[x]; )
- +
- -
- *
- /
- %
- <<
- >>
- |
- &
- ^
- <
- <=
- >
- >=
- ==
- !=
- &&
- ||
- =
- /=
- *=
- %=
- +=
- -=
- <<=
- >>=
- &=
- ^=
- |=
- a == b ? c : d
- a ?: b
- -> : value->a
- {x, y, z}: int a[2] = {0, 0}; struct CGPoint a = {1, 2};
- []: int a[2]; // C Array Declaration.