हिंदी

Explain the following with one example. Arithmetic operator - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Explain the following with one example. 

Arithmetic operator 

Give two examples of Arithmetic operators. 

संक्षेप में उत्तर
Advertisements

उत्तर

Arithmetic operators perform arithmetic operations within a program. Unary arithmetic operators apply to a single operand (prefix or postfix), while Binary arithmetic operators deal with two operands. Shorthand binary operations also employ Binary operators. 

Example: 

  • +, −, ++, −−, *, /, &, %
  • sum += b; // shorthand
  • int c = num % 2
shaalaa.com

Notes

Students should refer to the answer according to their question and preferred marks. 

  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.04: Operators in Java - EXERCISES [पृष्ठ ४४]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.04 Operators in Java
EXERCISES | Q V. 3. (a) | पृष्ठ ४४
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×