Lecture overview -- Keyboard shortcut: 'u'  Previous page: User defined types -- Keyboard shortcut: 'p'  Next page: Control structures -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 1 - Page 20 : 29
Notes about C++
From C to C++
Expressions and operators

Expressions and operators in C are well-known

Similar to the means of expression in most other languages in C family

  • Expressions are evaluated to obtain a value

  • Expressions in C may have side effects

    • Assignments are expressions

    • Other dirty operators: ++, -- (both prefix and postfix)

C++ adds three new operators ( .*, ->*, ::) of which the scope operator :: is the most important

( .* and ->* are special operators that binds pointer to members to a particular object )