C Instruction Set (PIC Microcontroller)

Operator

Operation

Example

Top priority

tmpA-173
tmpA-174

Function call

tmpA-175
tmpA-176

Array element


tmpA-177
tmpA-178

Structure element

tmpA-179
tmpA-180

Structure element using a pointer

Unary operators

tmpA-181
tmpA-182

Logical NOT

tmpA-183
tmpA-184

Inversion (1′s complement)

tmpA-185
tmpA-186

Negative

tmpA-187
tmpA-188

Unary plus

tmpA-189
tmpA-190

Increment

tmpA-191
tmpA-192

Decrement

tmpA-193
tmpA-194

Address of

tmpA-195
tmpA-196

Contents of address

tmpA-197
tmpA-198

Cast

tmpA-199
tmpA-200

Size of object in bytes

tmpA-201

Arithmetic

tmpA-202
tmpA-203

Multiplication

z=x*y

tmpA-204

Division

z=x/y

tmpA-205

Remainder

z=x%y (Integer types only)

tmpA-206

Addition

z=x+y

tmpA-207

Subtraction

z=x-y

Shift

Integer types only

tmpA-208
tmpA-209

Shift left

tmpA-210
tmpA-211

Shift right

tmpA-212

Relational operators

Boolean objects

tmpA-213
tmpA-214

Less than

tmpA-215
tmpA-216

Less than or equal

tmpA-217
tmpA-218

Greater than

tmpA-219
tmpA-220

Greater than or equal

tmpA-221
tmpA-222

Equivalent

tmpA-223
tmpA-224

Not equivalent

tmpA-225

C operators, their precedence and associativity

Operator

Operation

Example

Bitwise logic

Integer types only

tmpA-226
tmpA-227

AND

tmpA-228
tmpA-229

Exclusive-OR

tmpA-230
tmpA-231

OR

tmpA-232

Objectwise logic

Boolean objects

tmpA-233
tmpA-234

Logical AND

tmpA-235
tmpA-236

Logical OR

tmpA-237
tmpA-238

Conditional

tmpA-239

Assignment

tmpA-240
tmpA-241

Simple

tmpA-242
tmpA-243

Compound plus

tmpA-244
tmpA-245

Compound minus

tmpA-246
tmpA-247

Compound multiply

tmpA-248
tmpA-249

Compound divide

tmpA-250
tmpA-251

Compound remainder

tmpA-252
tmpA-253

Compound bit AND

tmpA-254
tmpA-255

Compound bit EX-OR

tmpA-256
tmpA-257

Compound bit OR

tmpA-258
tmpA-259

Compound shift left

tmpA-260
tmpA-261

Compound shift right

tmpA-262
tmpA-263
tmpA-264

Concatenate

tmpA-265

Lowest priority

C operators, their precedence and associativity.

Next post:

Previous post: