Lektionsindhold -- Tastaturgenvej: 'u'  Forrige side: Associering af operatorer -- Tastaturgenvej: 'p'  Næste side: Assignment operatorer i C [Section] -- Tastaturgenvej: 'n'  Forelæsningsnoter - alle slides sammen  Alfabetisk indeks  Hjælp om disse noter  Kursets hjemmeside    Introduktion til C - slide 16 : 24

Operatortabel for C
Niveau Operatorer Associativitet
16 ()      []      ->      .      ++postfix      --postfix left to right
15 ++prefix      --prefix      !      ~      sizeof(type)      +unary      -unary      &unary,prefix      *unary,prefix right to left
14 (type name) Cast right to left
13 *      /      % left to right
12 +      - left to right
11 <<      >> left to right
10 <      <=      >      >= left to right
9 ==      != left to right
8 & left to right
7 ^ left to right
6 | left to right
5 && left to right
4 || left to right
3 ?: right to left
2 =      +=      -=      *=      /=      %=      >>=      <<=      &=      ^=      |= right to left
1 , left to right