20 Nov 2019

  • November 20, 2019
  • Amitraj
Operators in C++


C++ has a rich set of Operators. All C operators are valid in C++ also. In addition, C++ introduces some new operators;



<<          Insertion operator

>>          Extraction operator

::            Scope resolution operator

::*          Pointer to member declaration

->*         Pointer to member operator

.*            Pointer to member operator

delete     Memory release operator

new        Memory allocation operator

endl       Line feed operator

setw     Field width operator


* All  C operators like Arithmetic, logical, Relational, Bitwise, Assignment, comma and  Others are available in C++.

Related Posts:

  • multiple inheritance in C++ 2.) multiple inheritance Multiple inheritance occurs when a class inherits from more than one base class. So the class can inherit features from multiple base classes using multiple inheritance. This is an important… Read More
  • multilevel Inheritance in C++ 3.)  Multilevel - Inheritance *In this type of inheritance, a derived class is created from another derived class.      *If a class is derived from another derived class then it is called multilevel inh… Read More
  • Single inheritance in C++ 1.) single inheritance -> A derived class with only one base class, is known as single inheritance. -> When a single class is derived from a single parent class, it is called Single inheritance. It is the simplest o… Read More
  • Types of Operator Overloading in C++ *Overloading Binary Operators:- -> The Binary operators take two arguments and following are the examples of Binary operators. You use binary operators very frequently like addition (+) operator, subtraction (-) operator… Read More
  • Inheritance in C++ Inheritance in C++ The capability of a class to derive properties and characteristics from another class is called Inheritance. Inheritance is one of the most important feature of Object Oriented Programming. Sub… Read More

Translate

Popular Posts