How to add two numbers without using arithmetic operators?

Answer Posted / pradeep

prashant answer is wrong suppose add two similar numbers
prashant answers will fail because addtion of two similar
bits according to the bitwise xor fails.

Is This Answer Correct ?    17 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you tell me how to check whether a linked list is circular?

760


How can I get back to the interactive keyboard if stdin is redirected?

663


Who invented b language?

911


Explain how does flowchart help in writing a program?

623


How can you find out how much memory is available?

610






How is a null pointer different from a dangling pointer?

555


What is the difference between exit() and _exit() function in c?

578


int i=10; printf("%d %d %d", i, i=20, i);

1006


What is the process to generate random numbers in c programming language?

604


difference between native and cross compilers

1669


What is the use of a semicolon (;) at the end of every program statement?

764


What are external variables in c?

543


Are the variables argc and argv are local to main?

780


What is the default value of local and global variables in c?

555


Why is c still so popular?

614