हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

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

Advertisements
Advertisements

प्रश्न

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

टिप्पणी लिखिए

उत्तर

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)
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 9: Introduction to C++ - Data Types, Variables and Expressions - Evaluation - Section - C [पृष्ठ १५१]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
अध्याय 9 Introduction to C++
Data Types, Variables and Expressions - Evaluation - Section - C | Q 1. | पृष्ठ १५१
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×