
CodePudding user response:
% x is according to the byte alignment to output hexadecimal (that is, the output is necessarily the even number), 1 byte has eight, 0 x44 is 0100, 0100, just eightAnd a byte 0 x3 discontent (odd number), if use % x, becomes 0 x03 (0000 0011) gather full one byte, so want to use % # x, a representative # 1 number