Here’s the output dumped from od -cx(on linux you can reproduce with echo -ne "\r\n\n" |od -cx):
0000000 \r \n \n \0
0a0d 000a
0000003
The correct first 2 bytes should be 0d0a but it outputs 0a0d,why?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
because you’re on a little-endian system? a 16-bit integer will be the high byte followed by the low byte; in this case the 2nd byte followed by the first.