Wednesday, February 15, 2012

Big Endian or Little Endian

Print the char position of an int and it will probably tell whether the machine is big endian or little endian..

Thursday, January 21, 2010

1. Blind Man and Cards: A blind man is handed a deck of 52 cards and told that exactly 10 of these cards are facing up. How can he divide the cards into two piles, not necessarily of equal size, with each pile having the same number of cards facing up?