How to add two numbers without using arithmetic operators?
Answer Posted / ramanareddy
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("enter the two numbers");
scanf("%d %d",%a,&b);
c=(-(-a-b));
printf("sum is = %d",c");
getch();
}
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
explain what are pointers?
Why flag is used in c?
Tell me when is a void pointer used?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
What is meant by recursion?
Explain main function in c?
Does sprintf put null character?
What is the difference between #include
Give differences between - new and malloc() , delete and free() ?
If you know then define #pragma?
How does free() know explain how much memory to release?
What is the difference between c &c++?
What is the newline escape sequence?
In C programming, what command or code can be used to determine if a number of odd or even?
Why does not c have an exponentiation operator?