Computer Science, asked by harsur152, 1 year ago

Explain the use of different operators with the help of an example

Answers

Answered by durekhan123
1

An operator is a symbol which helps the user to command the computer to do a certain mathematical or logical manipulations. Operators are used in C++ language program to operate on data and variables. C++ has a rich set of operators which can be classified as

Arithmetic Operators: All the basic arithmetic operations can be carried out in C++. All the operators have almost the same meaning as in other languages. Both unary and binary operations are available in C++ language. Unary operations operate on a singe operand, therefore the number 5 when operated by unary – will have the value –5

Attachments:
Similar questions