couldn't tell you in C...Perhaps this is a C++ Program?

btw...The windows calculator can convert decimal to hex and binary. Could be very useful for your situation.