C++ Operators

An operator is a symbol that tells the compiler to perform specific mathematical or logical manipulations. C++ is rich in built-in operators and provides following type of operators:

·        Arithmetic Operators ( +, -, \, *, ++, –)

·        Relational Operators (==, !=, >. <, >=, <=)

·        Logical Operators (&&, ||, ! )

·        Bitwise Operators (& |, ^, ~, <<, >>)

·        Assignment Operators (=, +=, -=, *=, /=, %=, <<=, >>=, &=, ^=, |=)

·        Misc Operators ( sizeof, & cast, comma, conditional etc.)

Related Posts

© 2023 Software Engineering - Theme by WPEnjoy · Powered by WordPress