write a c programme for add of two numbers with out use of
arthematic operators
Answer Posted / upendra pratap shahi
int xor, and, temp;
and = x & y;
xor = x ^ y;
while(and != 0 )
{
and <<= 1;
temp = xor ^ and;
and &= xor;
xor = temp;
}
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
why programs in c are running with out #include
What is a loop?
What is meant by initialization and how we initialize a variable?
What are the storage classes in C?
What are pointers?
What is the role of this pointer?
Explain how do you generate random numbers in c?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
How to implement a packet in C
What are qualifiers?
Is printf a keyword?
What is a pointer on a pointer in c programming language?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
Why do we need a structure?
What are reserved words with a programming language?