Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are the different operators in C++?

Answer Posted / shweta iyer

1)Arithmetic: for general arithmetic operations. They are "+,-, *,/,%".

2)Relational: for performing operations based on relations.They are ">,<,>=,<=,==,!=".

3)Logical: for performing ooperations based on some logics.They are "AND,OR,NOT".

4)Conditional: it works as simple if-else.It is "?:"

5)Assignment: used to assign some values to the variables. It is "="

6)Increment/Decrement: used to increase or secrease the value of any variable. They are : "++" for increment and "--" for decrement.

7)Bitwise: used to perform operations on bits. They are "&,^,<<,>>"

8)insertion : used to display any value or statement on screen. It is "<<"

9)extraction : used for input. It is ">>"

10)scope resolution: to define the scope of a function member. It is "::"

11)field width: used to set wiidth of the field. It is "setw"

12)memory allocation: to allocate new spaces in memory. It is "new".

13)memory release: to free the memory. It is "delete".

14)line feed: It is used to provide a new line. It is "endl".

15)pointer to member: it is used for pointers. It is .* and .->

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an inclusion guard?

1112


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3792


Explain what are mutator methods in c++?

1067


Is c++ double?

980


Is c++ a programming language?

1021


What is auto type c++?

1079


Which operator cannot be overloaded c++?

969


What are the various situations where a copy constructor is invoked?

1073


Does c++ cost money?

951


Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).

954


How a new element can be added or pushed in a stack?

963


Can I learn c++ as my first language?

1056


Why would you use pointers in c++?

1098


what are the iterator and generic algorithms.

1915


How many types of classes are there in c++?

986