Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
You are viewing an older revision! See the latest version
Operatoren Einleitung
Operatoren und Ausdrücke¶
- Arten:
- Arithmetische Operatoren (z.B. in C: +, -, *, /, %)
- Vergleichsoperatoren (z.B. in C: <, >, <=, >=, ==, !=)
- Logische Operatoren (z.B. in C: &&, ||, !)
- Bitoperatoren (z.B. in C: &, |, ~ (NOT), ^(EXOR), >>, <<)
- Operatoren in der C-Programmierung
- Testen arithmetischer Operatoren mit Ganzzahlen (Integer) - Ändern Sie das Programm für Gleitkommazahlen (float statt int) - was funktioniert bzw. was nicht?
- Testen verschiedener Operatoren mit Ganzzahlen (Integer) - Erweitern Sie das Programm
printf Formatspezifizierer:- %d int(eger),
- %x hex(adezimal)
- %f float,
- %c char (Zeichen)
- Häufig werden Kombinierte Zuweisungen verwendet werden:
- a+=b; an Stelle von a=a+b;
- a|=b; an Stelle von a=a|b;
- a<<=b; an Stelle von a=a<<b;,
- usw.
- Ausführungspriorität der C++-Operatoren