Introduction to Computer Science - C++
Some Language Specifications
- Conditional Operators
- || - logical or
- | - binary or
- && - logical and
- & - binary and
- ^ - exclusive or ( xor )
- != , == , <=, >=, < , >, ! ( condition )
- "short circuiting"
- Operators
- +, -, =, *, /, %, ++, --, +=, -=, *=, /= , %=
- condition ? statement : statement ;
- i++ vs. ++i
- Casting.
Example:
int a =7;
cout <<(float)a;
- int, float, double, long, bool, unsigned, char, short, const
© Nachum Danzig November 2003