Give some interview question on C Bit operations.
by game_iiith on Sun Jan 24, 2010 5:20 am
Write a function which takes 2 ints and returns their sum, without using the '+' operator.
Avi
-

game_iiith
- Super Cracker

-
- Posts: 111
- Joined: Sun Sep 06, 2009 1:26 pm
-
by jalajb2k7 on Mon Jun 28, 2010 3:52 am
let the two numbers be a and b
printf("%d",printf("%*s,%*s,a," ",b," "));
-
jalajb2k7
- Active Member
-
- Posts: 9
- Joined: Mon Jun 21, 2010 4:30 pm
-
by alok.ahuja on Mon Jul 05, 2010 7:09 pm
Could you explain the logic behind it.
-

alok.ahuja
- Cool Cracker

-
- Posts: 54
- Joined: Wed Nov 14, 2007 8:24 pm
-
Return to C - Bit Fiddling
Users browsing this forum: No registered users and 1 guest