Horje
operators priority in c Code Example
operators priority in c
/* First priority (left-to-right) */
v++ v--       // increment/decrement suffix
() []         // function call / array subscripting
.  ->         // structure and union member access (trought pointer or not)
(type) {list} // Compond literal

/* priority 2 (right-to left) */
++v --v       // increment/decrement prefixe
+ -           // unary plus/minus
! ~           // logical and bitwise NOT
(type)        // type casting
* &           // dereference / adress-of
sizeof _Alignof

/* (left-to right) */
// priority 3
* / %
// priority 4
+ -
// priority 5
>> <<
// priority 6
< <= > >=
// priority 7
== !=
// priority 8
&
// priority 9
^
// priority 10
|
// priority 11
&&
// priority 12
||

// (right-to-left)
// priority 13
? :             // ternary conditional
// priority 14
= += -= *= /= %= <<= >>= &= ^= |= ~=

// (left-to-right) 
// priority 15
,




C

Related
array of strings in c Code Example array of strings in c Code Example
c copy 2 strings\ Code Example c copy 2 strings\ Code Example
linux play youtube audio only Code Example linux play youtube audio only Code Example
FIRST PROGRAM IN C Code Example FIRST PROGRAM IN C Code Example
c program hide console window Code Example c program hide console window Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9