facebook rss daftar isi halaman depan

Laman

Sabtu, 06 November 2010

code-code pascal

Precedence levels

The languages differ significantly when it comes to expression evaluation, C (although not fully comparable) has almost four times as many precedence levels as Pascal.

Pascal has four levels:

1. Logical negation: not
2. Multiplicative: * / div mod and
3. Additive: + - or
4. Relational: = <> < > <= >= in

while C has 15 levels:

1. Unary postfix: [] () . -> ++ --
2. Unary prefix: & * + - ! ~ ++ -- (type) sizeof
3. Multiplicative: * / %
4. Additive: + -
5. Shift: << >>
6. Relational: < > <= >=
7. Equality: == !=
8. Bitwise and: &
9. Bitwise xor: ^
10. Bitwise or: |
11. Logical and: &&
12. Logical or: ||
13. Conditional: ? :
14. Assignment: = += -= *= /= %= <<= >>= &= ^= |=
15. Comma operator: ,

Tidak ada komentar:

Posting Komentar

terimakasih aras kunjungan anda di blog mesujiraya
komentarnya saya tunggu mas bro & mbak sist