ProAnswers.org

Write a c program to add two numbers without add operator?

Write a c program to add two numbers without add operator?

Use two subtract operators together to work as add operator.

[b]#include [/b]

[b]#include [/b]

[b]int main(){[/b]

[b]          int a=1,b=2,c;[/b]

[b]          c=a-(-b);[/b]

[b]          printf(ā€œ%dā€,c);[/b]

[b]          getch();[/b]

[b]          return 0;[/b]


	[b]}[/b]