Arithmetic Operators Flashcards
1
Q
Add
A
+
2
Q
Subtract
A
-
3
Q
Multiply
A
*
4
Q
Divide
A
/
5
Q
Modulus
A
%
6
Q
Increment
A
++
7
Q
Decrement
A
–
8
Q
arithmetic operator
A
arithmetic operator
numerical value
constants
variables
9
Q
C Program to demonstrate the working of addition operators
a+b = 13
A
#include int main() { int a = 9,b = 4, c; c = a+b; printf("a+b = %d \n",c); return 0; }
10
Q
C Program to demonstrate the working of subtraction operators
a-b = 5
A
#include int main() { int a = 9,b = 4, c; c = a-b; printf("a-b = %d \n",c); return 0; }
11
Q
C Program to demonstrate the working of multiplication operators
a*b = 36
A
#include int main() { int a = 9,b = 4, c; c = a*b; printf("a*b = %d \n",c); return 0; }
12
Q
C Program to demonstrate the working of division operators
a/b = 2
A
#include int main() { int a = 9,b = 4, c; c=a/b; printf("a/b = %d \n",c); return 0; }
13
Q
C Program to demonstrate the working of modulo operators
Remainder when a divided by b=1 (integer value)
A
#include int main() { int a = 9,b = 4, c; c=a%b; printf("Remainder when a divided by b = %d \n",c); return 0; }