Using Objective-C Operators in iOS 6 App Development - dummies

Using Objective-C Operators in iOS 6 App Development

Objective-C has many helpful operators for your iOS programming. Use the following table to jog your memory about which operator you should use to accomplish a certain task.

Arithmetic Operators
Operator What It Does
Subtraction
* Multiplication
/ Division
% Modulo
Relational and Equality Operators
Operator What It Does
== Equal to
!= Not equal to
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
Logical Operators
Operator What It Does
! NOT
&& Logical AND
|| Logical OR
Compound Assignment Operators
Operator What It Does
-= Subtraction
*= Multiplication
/= Division
%= Modulo
&= Bitwise AND
|= Bitwise Inclusive OR
^= Exclusive OR
<<= Shift Left
>>= Shift Right
Increment and Decrement Operators
Operator What It Does
Subtraction
*= Multiplication
/= Division
%= Modulo
&= Bitwise AND
|= Bitwise Inclusive OR
^= Exclusive OR
<<= Shift Left
>>= Shift Right
Bitwise Operators
Operator What It Does
& Bitwise AND
| Bitwise Inclusive OR
^ Exclusive OR
~ Unary complement (bit inversion)
<< Shift Left
>> Shift Right
Other Operators
Operator What It Does
() Cast
, Comma
Sizeof() Size of
? : Conditional
{"ft_lang_label":"__label__en","ft_lang_prob":0.57830447,"math_prob":0.78973085,"size":1545,"snap":"2019-43-2019-47","text_gpt3_token_len":413,"char_repetition_ratio":0.16288124,"word_repetition_ratio":0.22821577,"special_character_ratio":0.2880259,"punctuation_ratio":0.03883495,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9920828,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-10-23T19:07:45Z\",\"WARC-Record-ID\":\"<urn:uuid:6b9bfb33-68ee-44ba-9098-72ca65195941>\",\"Content-Length\":\"46403\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fcd087e2-6b5d-40de-b0e4-44e9e3d26b5f>\",\"WARC-Concurrent-To\":\"<urn:uuid:ce5badbc-c731-45f7-95e3-63e11ebbcd9b>\",\"WARC-IP-Address\":\"99.84.181.102\",\"WARC-Target-URI\":\"https://www.dummies.com/web-design-development/mobile-apps/using-objective-c-operators-in-ios-6-app-development/\",\"WARC-Payload-Digest\":\"sha1:J56XPTBUYJ52PCES57RJ2I5YSDIJFXPL\",\"WARC-Block-Digest\":\"sha1:YHJWIJHILKVSV24VZZ6FITLQMVLCNUYC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-43/CC-MAIN-2019-43_segments_1570987835748.66_warc_CC-MAIN-20191023173708-20191023201208-00379.warc.gz\"}"}