Home
Questions
Search
Forum
Contact
Guest Book
Polls!
Got a Question?
 
PREV
Programs
NEXT
 
(83 / 301)
 
 



How to add two numbers without using the plus operator?




Actually,


SUM   = A XOR B
CARRY = A AND B


On a wicked note, you can add two numbers wihtout using the + operator as follows


a - (- b)


:)


PREV
COMMENTS                                  INDEX                                  PRINT
NEXT



Last updated: November 3, 2005

www.cracktheinterview.com - Your destination for the most common IT interview questions, answers, frequently asked interview questions (FAQ), C Programs, C Datastructures for technical interviews conducted by the top IT companies around the world!