Interview Questions   Tutorials   Discussions   Programs   

C - How to add two numbers without using arithmetic operators in c?




310
views
asked marvit August 18, 2014 08:59 AM  

How to add two numbers without using arithmetic operators in c?


           

1 Answers



 
answered By bhjahnavi   0  
In c two number can be added with out using arithmetic operator(+) that is we can use exclusive or operator (XOR) to add to number and the carry bits can be obtained using AND(&).
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert