Arithmetic Operators in C Language:
(1) Arithmetic Operators are used for calculation purpose.
(2) Sample C language code and its output, as shown:

#include <stdio.h> #include <conio.h> // Arithmetics Operators in C Language int main() { int x; int y; x = 10; y = 2; printf(“Value of Addition is: %d\n”, x+y); printf(“Value of Subtraction is: %d\n”, x-y); printf(“Value of Multiplication is: %d\n”, x*y); printf(“Value of Division is: %d\n”,x/y ); printf(“Value of Modulus is: %d\n”, x%y); printf(“Value of Increment is: %d\n”,++x); printf(“Value of Decrement is: %d\n”,–y ); getch(); return 0; } |
(3) After that go to the “Build” menu and select the “Build” option for publishing the code as shown.

(4) After building the code, press the “Run” button, as shown.

(5) After pressing the “run” button, the output screen is opened, as shown.

Arithmetic Operators | Description |
---|---|
+ | Addition |
– | Subtraction |
* | Multiplication |
/ | Division |
% | Modulus |
++ | Increment |
— | Decrement |