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
What is structure in c explain with example?
How is a macro different from a function?
What is the difference between break and continue?
By using C language input a date into it and if it is right?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?
What is function prototype?
How can a program be made to print the line number where an error occurs?
Differentiate call by value and call by reference?
Difference between pass by reference and pass by value?
What is the sizeof () operator?
How will you write a code for accessing the length of an array without assigning it to another variable?
what is the difference between 123 and 0123 in c?
What are the primitive data types in c?
What are terms in math?