What is the difference between \r and \n?

后端 未结 9 2222
庸人自扰
庸人自扰 2020-11-22 06:20

How are \\r and \\n different? I think it has something to do with Unix vs. Windows vs. Mac, but I\'m not sure exactly how they\'re different, and

9条回答
  •  醉话见心
    2020-11-22 07:19

    \r used for carriage return. (ASCII value is 13) \n used for new line. (ASCII value is 10)

提交回复
热议问题