** C program to add two numbers without using Arithmetic Operator: **There are many ways to** add two numbers or sum up two numbers without using a arithmetic Operator. **The methods are listed below:** **

### Method #1

**Method #1: Adding two number using subtraction :** This ones a impressive method. LOL !

1 2 3 4 5 6 7 8 9 10 |
#include "stdio.h" int main() { int num1 = 10, num2 = 5; num1 = num1 - (-num2); printf("Sum is : %d",num1); return (); } |

### Method #2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#include <stdio.h> int sum(int, int); int main() { int num1, num2; printf("\nEnter the two Numbers : "); scanf("%d %d", &num1, &num2); //Enter two numbers printf("\nSum of two num is : %d", sum(num1, num2)); //user defined function is now called return (); } int add(int num1, int num2) // the two values are now passed in to this function whose output will be sent back to the method called { if (!num1) return num2; else return sum((num1 & num2) << 1, num1 ^ num2); } |