Ramblings of a techie

Showing posts with label OR. Show all posts
Showing posts with label OR. Show all posts

20 December 2010

Addition without using the + operator in C

Write a C function which does the addition of two integers without using the '+' operator. You can use only the bitwise operators.(Remember the good old method of implementing the full-adder circuit using the OR and XOR gates....)


Now, for the code implemented in C.

Cheers!
Jack
No comments:
Labels: C, C++, coding, full-adder, OR, XOR
Older Posts Home
Subscribe to: Posts (Atom)
profile for bragboy at Stack Overflow, Q&A for professional and enthusiast programmers

Blog Archive

  • ▼  2017 (3)
    • ▼  Feb (1)
      • 15-Game in Android
    • ►  Jan (2)
  • ►  2016 (7)
    • ►  Nov (1)
    • ►  Sep (1)
    • ►  Jul (1)
    • ►  Jun (1)
    • ►  May (1)
    • ►  Jan (2)
  • ►  2015 (7)
    • ►  Dec (1)
    • ►  Nov (3)
    • ►  Aug (2)
    • ►  Jun (1)
  • ►  2013 (4)
    • ►  Nov (4)
  • ►  2012 (7)
    • ►  Dec (1)
    • ►  Jul (5)
    • ►  Feb (1)
  • ►  2011 (16)
    • ►  Dec (1)
    • ►  Nov (4)
    • ►  Aug (3)
    • ►  Jul (8)
  • ►  2010 (94)
    • ►  Dec (12)
    • ►  Oct (2)
    • ►  Sep (5)
    • ►  Aug (27)
    • ►  Jul (1)
    • ►  Jun (2)
    • ►  May (8)
    • ►  Apr (8)
    • ►  Mar (1)
    • ►  Feb (16)
    • ►  Jan (12)
  • ►  2009 (4)
    • ►  Nov (1)
    • ►  Jan (3)
  • ►  2008 (7)
    • ►  Mar (1)
    • ►  Feb (6)

Popular Posts

  • Quick way to import a jar in Eclipse
  • Java Program to reverse a Singly Linked List
  • TRIE data structure Part 1: The TRIE ADT in Java
  • TRIE data structure Part 2 : Node and TRIE class in Java
  • Reverse a Singly Linked List Recursively in Java
Simple theme. Theme images by sololos. Powered by Blogger.