Home > Back-end > The presence of strong symbol conversion issues
The presence of strong symbol conversion issues
Time:01-09
CodePudding user response:
The problem is not cast out of the question, but when you send the single-byte as arguments to the printf, compiler extends to it (longer), for many reasons, I didn't look too,
CodePudding user response:
Is the inside of the printf format to character, the first 250 good understanding, use unsigned char casts after 11111010 is 250, and no longer need to complement, because is unsigned types, The second is the % u, for % d is - 6, with the second floor,
CodePudding user response:
So, The first step, like the original poster written in the annotations, Second step into the stack extensions (to 32-bit integer times), the front of the unsigned add 0, signed in front of all a copy of the sign bit, The third step in accordance with the requirements of the format character received explained after the extension of the content, the output,