2014年6月26日 - Here's a pair of functions: void printCharAsBinary(char c) { int i; for(i = 0; i < 8; i++){ printf("%d", (c >> i) & 0x1); } } void printStringAsBinary(char* s){ for(; ...
stackoverflow.com