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 isnt there a numbered, multi-level break statement to break out
What the different types of arrays in c?
What is the meaning of c in c language?
What is this infamous null pointer, anyway?
What is the best way of making my program efficient?
What is a volatile keyword in c?
What is the use of ?: Operator?
What is a union?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Which programming language is best for getting job 2020?
What are formal parameters?
Why c is procedure oriented?
Are there any problems with performing mathematical operations on different variable types?
What is difference between array and structure in c?
Simplify the program segment if X = B then C ← true else C ← false