I am playing with the following two code snippets What the above code wants to do is to read a byte from the user keyboard and then print it to stdout. The confusing thing is two snippets have different behaviors: I am sorry about the format of the above code, I don’t know how to place the prompt at the