Arithmetic Operator

What is operator?

Operator is a symbol which is used for mathematical operation and logical manipulation.

Syntax

left-operand operator right-operand

example:
5 + 9 or a + b


+ is used to add two values(variable).

See Output

printf("%d + %d = %d",a,b,sum); in this statement a,b and sum respectively display on %d places.


- is used to subtract two values(variable).

See Output

* is used to multiply two values(variable).

See Output

/ is used to divide two values(variable).

See Output

% is used to get remainder. It is called "modulus".

See Output

About Us

Comsysapp.com is an educational website. Students and software developers can learn programming language tutorials. Comsysapp is very useful for beginners and professional developers. Comsysapp provides tutorial in easy language. Comsysapp.com has focus on simplicity.

Services

Comsysapp.com provides free tutorials like c, html, css, etc. All tutorials are free for beginner and professionals.


Terms of Use

comsysapp.com is not responsible for any mistake. We are not responsible if information made available on our website is incomplete or invalid. But comsysapp.com always try for zero-zero mistake.

Privacy policy

comsysapp.com does not collect any data from users. We use Google AdSense advertising on our website. We never ask personal or private information.


Sitemap

sitemap

copyright © 2023