English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

What are arithmetic operators in C++? Differentiate unary and binary arithmetic operators. Give example for each of them. - Computer Science

Advertisements
Advertisements

Question

What are arithmetic operators in C++? Differentiate unary and binary arithmetic operators. Give example for each of them.

Short Note

Solution

Arithmetic operators: perform simple arithmetic operations like addition, subtraction, multiplication, division, etc.

Unary Operators:

  1. Require only one operand.
  2. Example: +, -, *, /, %, >, <, <=, AND, OR

Binary Operators:

  1. Require two operands
  2. Example: ++ (Plus, Plus) Increment operator, – – (Minus, Minus) Decrement operator, NOT, ~,
shaalaa.com
Lexical Units (Tokens)
  Is there an error in this question or solution?
Chapter 9: Introduction to C++ - Data Types, Variables and Expressions - Evaluation - Section - C [Page 151]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 9 Introduction to C++
Data Types, Variables and Expressions - Evaluation - Section - C | Q 1. | Page 151
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×