Code:#include "stdlib.h" #include "stdio.h" int main(int argc, char* argv[]) { int i = 123; printf("%08x\n", i); char str[33]; _itoa(i, str, 2); printf("%s\n", str); return 0; }
|
Results 1 to 9 of 9
Thread: Convert number to binaryThreaded View
|
Click Here to Expand Forum to Full Width |