Skip to content
  • About
  • CoursesExpand
    • Problem Solving using C Language
    • Mastering Database Management
    • Linux System Administration
    • Linux and Shell Programming
  • Publications
  • Professional Certificates
  • BooksExpand
    • Books Authored
  • Patents
Download CV

Operators

Arithmetic Operators

  • +, – , *, / and the modulus operator %.
  • + and – have the same precedence and associate left to right.
    3 – 5 + 7 = ( 3 – 5 ) + 7  3 – ( 5 + 7 )
    3 + 7 – 5 + 2 = ( ( 3 + 7 ) – 5 ) + 2
  • *, /, % have the same precedence and associate left to right.
  • The +, – group has lower precedence than the *, / % group.
    3 – 5 * 7 / 8 + 6 / 2
    3 – 35 / 8 + 6 / 2
    3 – 4.375 + 6 / 2
    3 – 4.375 + 3
    -1.375 + 3
    1.625

The following table shows all the arithmetic operators supported by the C language. Assume variable A holds 10 and variable B holds 20 then

Logical Operators

Nishant Munjal

Coding Humanity’s Future </>

Facebook Twitter Linkedin YouTube Github Email

Tools

  • SIP Calculator
  • Write with AI
  • SamplePHP
  • Image Converter

Resources

  • Blog
  • Contact
  • Refund and Returns

Legal

  • Disclaimer
  • Privacy Policy
  • Terms and Conditions

© 2025 - All Rights Reserved

  • About
  • Courses
    • Problem Solving using C Language
    • Mastering Database Management
    • Linux System Administration
    • Linux and Shell Programming
  • Publications
  • Professional Certificates
  • Books
    • Books Authored
  • Patents
Download CV
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.