Tuesday, June 30, 2020

CHAPTER-1(PART-3)

  •  C++ Tokens

Tokens are the smallest available unit of a program. In C++ tokens are divided into 5 types:

  1. Keywords Ex: if, for, while
  2. Identifiers Ex: num, name
  3. Constants Ex: 10, 20
  4. operators Ex: +, /, –
  5. Special Symbols Ex: { }, ()

 

  •  C++ keywords

break                    else                        for
case                      enum                     goto
asm                      dynamic_cast        namespace
bool                     explicit                  new
catch                    false                      operator
class                     friend                    private
const_cast            inline                     public
delete                   mutable                protected
auto                      const                     double
char                      do                          extern
continue           reinterpret_cast
long                    signed                     switch
register                sizeof                      typedef
static_cast                                           using
int                         short                      struct
throw                     this                        virtual
true                      wchar_t                signed
if                          return                    static
try                         void                        union
while                    volatile                   typeid

No comments:

Post a Comment

CHAPTER-2(PART -1 C++ Input Output)

 In C++ input and output occurs in stream of bytes. If the stream of sequence of bytes go from keyboard to the main memory is called as inpu...