Basic Introduction of C (Day one)

Basic introduction of C (Day one) Some Basic Concepts –  Developed By – Bjarne Stroustrup C++ Character set – What does a character set means ? Character set of C++ means the character or the language understand by C++ language.  Like humans, C++ has its own language.

Letters         - A-Z, a-z
Digits          - all(0-9)
Special Symbols -

Special-Characters (Basic introduction of C)White Spaces    - Blank Space, Horizontal Tab(→), Carriage Return(↵), New line, Form Feed
Tokens – Smallest individual unit in a program. C++ Has Following Tokens – 
  1. Keywords
  2. Identifiers
  3. Literals
  4. Punctuators
  5. Operators
Keywords – These are special words that is predefined by language C++. These words convey special meaning to the language compiler and are reserved for special purpose. Keywords (Basic introduction of C) Identifiers – a long sequence of letters and digits defined by a user. Example a, b, c, _data etc. Literals –  are data items that never change their value during a program run Literals (Basic introduction of C) Short Note on Literal  Punctuators or Seprators- Punctuators (Basic introduction of C) Operators – tokens that trigger some computation when applied to variables and other objects in an expression
  • Unary Operators – are those operators that require only one operand to operate upon.
        &     Address operator
        *     Inderection Operator
        +     Unary Plus
        -     Unary Minus
        ~     Bitwise Complement
        ++    Increment Operator
        --    Decrement Operator
        !     Logical Negation
  • Binary Operators – are those operators that require 2 operands to operate upon.Binary operators (Basic introduction of C)
Precedence of Operators –  precedence (Basic introduction of C)]]>

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top