• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Study Abroad
  • Writing Services
  • About Us
  • Contact
  • Blog

AcademicsHQ

Instant access to Study Resources, 24/7 Homework Help, Tutors, to help you ace your homework.

homework help
  • Academic Writing
    • Dissertation Writing
    • Report Writing
  • Research Process
  • Referencing Guide
  • Resume Writing
Home » Blog » Arithmetic Operations: Programming Basics

Arithmetic Operations: Programming Basics

June 12, 2019 by academicshq Leave a Comment

The basic operators for performing arithmetic operations are the same in many computer languages. The various arithmetic operators used for arithmetic operations are as follows:

  • Addition Operation
    ‘+’ operator is used to add two numbers as a+b
  • Subtraction Operation
    ‘-‘ operator is used to subtract two numbers (as in a-b)
  • Multiplication Operation
    ‘*’ is the Multiplication operator used to multiply two numbers (as in a*b)
  • Division Operation
    ‘/’ is the division operator. When applied to integers, it discards any remainder.
  • Modulus (remainder) Operation
    ‘%’ is the modulus operator that gives the remainder when two integers are divided. The modulus operator can only be applied to integers


GET INSTANT HELP FROM EXPERTS!

  • Looking for any kind of help on your academic work (essay, assignment, project)?
  • Want us to review, proofread or tidy up your work?
  • Want a helping hand so that you can focus on the more important tasks?

Hire us as project guide/assistant. Contact us for more information


Precedence
The term ‘precedence’ refers to how “tightly” operators bind to their operands (that is, to the things they operate on). Multiplication, division, and modulus all have higher precedence than addition and subtraction. In mathematics, multiplication has higher precedence than addition, so 1+2*3 is 7, not 9. In other words, 1+2*3 is equivalent to 1+(2*3).

Associativity
All of these operators ‘group’ from left to right, which means that when two or more of them have the same precedence and participate next to each other in an expression, the evaluation conceptually proceeds from left to right.
For example, 1-2-3 is equivalent to (1-2)-3 and gives -4, not +2.

Filed Under: Computers

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *


Primary Sidebar

Recent Posts

  • Hindi Project Work: Hindi Pariyojana Karya (हिंदी परियोजना कार्य)
  • Geography Projects Class 10
  • Money Education for Kids: Teach Them Financial Responsibility
  • Bachelor of Management Studies (BMS): Project Work
  • BMS (Bachelor of Management Studies): Assignment & Project Topics

Categories

  • Black Book Projects
  • Book Reviews
  • Business Law
  • CBSE Study Notes
  • Computers
  • Digital Business
  • Economics
  • Education Articles
  • English Literature
  • Environmental
  • Essays
  • Foreign Education
  • General
  • Geography
  • German
  • Global Education
  • Hindi
  • History
  • Hotel Management
  • HRM
  • Jobs
  • Management
  • Management Notes
  • Math
  • Media Study Notes
  • Movie Reviews
  • Primary
  • Research
  • Sample Essays
  • School Projects
  • School Study Notes
  • Science
  • Self Improvement
  • Services
  • Social Studies
  • Sociology
  • Solved Assignments
  • Student Software
  • Uncategorized
  • Writing Tips

Footer

CLASS NOTES

  • Class 10 . Class 9
  • Class 8 . Class 7
  • Class 6 . Class 5
  • Class 4 . Class 2
  • Class 2 . Class 1

ACADEMIC HELP

  • Essay Writing
  • Assignment Writing
  • Dissertation Writing
  • Thesis Writing
  • Capstone Projects
  • Homework Help
  • Report Writing

SERVICES

  • Writing Services
  • Book Review
  • Ghost Writing
  • Make Resume/CV

ABOUT US

  • About Us
  • Contact
  • Privacy Policy
  • Blog

Copyright © 2025 · News Pro on Genesis Framework · WordPress · Log in