disp(fprintf()) prints the fprintf and the number of characters. Why?

前端 未结 2 493
再見小時候
再見小時候 2021-01-19 06:33

By coincidence I discovered, that disp(fprintf()) prints the string of fprintf plus the number of characters that it has. I know, that the disp() i

2条回答
  •  一整个雨季
    2021-01-19 07:00

    In the doc on fprintf, you see that the output from fprintf is the number of bytes printed. So here, the fprintf is printing Hi 2 all of you and the disp is printing the 15 returned by fprintf.

提交回复
热议问题