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
What is wrong in this statement?
What are structure members?
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z. z-a:zyx......ba -1-6-:-123456- 1-9-1:123456789987654321 a-R-L:a-R...L a-b-c:abbc
Is c easy to learn?
Can true be a variable name in c?
Write a program to show the change in position of a cursor using c
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is #include stdlib h?
What is function prototype in c language?
Can we change the value of static variable in c?
Differentiate between new and malloc(), delete and free() ?
Why is c called c?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
Where define directive used?