Slide 2 - Beginning With C++
Slide 2 - Beginning With C++
(CS - 211)
Slide – 2
Beginning with C++
Prepared by –
Dr. Soumen Moulik
Department of Computer Science & Engineering
National Institute of Technology Meghalaya
Tokens
Tokens are smallest individual units in a program
Most of the C++ tokens are basically similar to the C tokens
with the exception of some additions and minor modifications
User-
Built-in Derived
defined
enum reference
SIZE
Dr. Soumen Moulik, Dept. of CSE, NIT Meghalaya
Type Conversion
Waterfall model of implicit type conversion
EXAMPLE
A variable declared as
public can be accessed by
the objects directly.
EXAMPLE
EXAMPLE
EXAMPLE
EXAMPLE