how to add two numbers without using arithmetic operators?
Answer Posted / rajkumar
#include<stdio.h>
#include<conio.h>
void main()
{
int a=6,b=3,sum=0;
sum=a^b;
printf("sum=%d",sum);
getch();
}
| Is This Answer Correct ? | 3 Yes | 9 No |
Post New Answer View All Answers
Are negative numbers true in c?
develop algorithms to add polynomials (i) in one variable
How can you tell whether two strings are the same?
When should the volatile modifier be used?
What is an operator?
Difference between malloc() and calloc() function?
Can a variable be both constant and volatile?
What is extern storage class in c?
Can an array be an Ivalue?
What is the difference between formatted&unformatted i/o functions?
What is meant by type specifiers?
How can I make sure that my program is the only one accessing a file?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
What is the purpose of sprintf?
What is string concatenation in c?