Topics
Number Systems
Program Analysis
Introduction to C+ +
- Introduction to C++
- Character Sets
- Standard I/O Strems in C++
- Type Modifiers
- C++ Data Types
- Variables in C++
- Constants
- Compiler Tokens
- Operators in C++
- Comments in C++
- Scope and Visibility
- Control Statements
- Functions in C++
- Default Arguments
- Techniques used to pass Variables into C++ Functions
- Function Overloading
- Inline Functions
- Recursion
- Pointers in C++
- Arrays in Data Structure
- References
- Type Conversion in Expressions
Visual Basic
Introduction to Networking and Internet
- Introduction to Networking Technology
- Networking Terms and Concepts
- Concept of Computer Network
- Network Security
- Network Applications
- Introduction to Operators in C++
- Arithmetic Operators
- Increment and decrement operator
- Relational Operator
- Logical operator (Boolean Operator)
- Conditional Operator
- Assignment Operator
- Shorthand (compound) Operators
- Bitwise Operators
- Operators dealing with Streams
- Comma Operators
- The Size of Operators
- Scope Resolution Operator
- Memory Management Operators (new, delete)
- Type cast operators
- Stream Manipulation Operators
Introduction to Operators in C++
An operator is a symbol that tells the computer to perform certain mathematical and logical manipulations. Operators are used in programs to manipulate data and variables. C++ has a rich set of operators. C++ has many operators , mainly classified as unary operators. working on single operand and binary
They are classified into the following categories.
- Arithmetic Operators
- Increment and decrement operator
- Relational Operator
- Logical operator (Boolean Operator)
- Conditional Operator
- Assignment Operator
- Shorthand (compound) Operators
- Bitwise Operators
- Operators dealing with Streams
- Comma Operators
- The Size of Operators
- Scope Resolution Operator
- Memory Management Operators (new, delete)
- Type cast operators
- Stream Manipulation Operators
Arithmetic Operators
They are used for mathematical calculations. An arithmetic expression is made up of constants, variables, a combination of both, or a function call connected by arithmetic operators
| Operator | Meaning |
| + | Addition or unary plus |
| - | Subtraction or unary minus |
| * | Multiplication |
| / | Division |
| % | Modulo division |
1) Unary Arithmetic Operator :
A unary arithmetic operator is an operator that operates on a single operand to perform an arithmetic operation.
For example : -a , +a , ++a , a--
2) Binary Arithmetic Operator :
A binary arithmetic operator is an operator that operates on two operands to perform a basic arithmetic operation
Following arithmetic operator:
+ Addition or plus
- Subtraction or minus
* Multiplication or star
/ slash or division
