Search
 
SCRIPT & CODE EXAMPLE
 

C

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
,
Comment

PREVIOUS NEXT
Code Example
C :: factorial in c using recursion 
C :: best sites for loop practice c 
C :: armstrong number using function in c 
C :: Call by reference to pass an array to the function in C- 
C :: c Program for Sum of the digits of a given number 
C :: merge sort code c 
C :: find smallest number in array in c 
C :: c convert number to string 
C :: c/c++ type format 
C :: armstrong number in c 
C :: c random array 
C :: c program strtok use 
C :: c# for loop decrement 
C :: c if else 
C :: limit axis in one direction plt 
C :: pyramid using c 
C :: format specifiers in c 
C :: addition of two numbers in c 
C :: create role in psql with password 
C :: c code to grade marks 
C :: unable to locate package dos2unix 
C :: binary search tree of strings in c 
C :: sh: tailwindcss: command not found 
C :: FCFS algorithm in c to find average turnaround time and waiting time 
C :: choose random number with weight 
C :: command line arguments c 
C :: array of strings c 
C :: C float and double Output 
C :: c pointers and arrays 
C :: git add -u flag 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =