fun binary problem in C