Input 10 test. Output: x = 10, str = The problem with above code is scanf() reads an integer and leaves a newline character in buffer. So fgets() only reads ...
確定! 回上一頁