为了账号安全,请及时绑定邮箱和手机立即绑定

\n转义字符的用处

\n转义字符有什么用,输不输都一样啊

正在回答

1 回答

如果没有\n,那么输出代码便会成这样:

...

printf("I love imooc.");

printf("I can learn many things in imooc.");

输出:I love imooc.I can learn many things in imooc.


若加\n:

printf("I love imooc.\n");

printf("I can learn many things in imooc.\n");

输出:I love imooc.

I can learn many things in imooc.


1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
C语言入门
  • 参与学习       927002    人
  • 解答问题       21533    个

C语言入门视频教程,带你进入编程世界的必修课-C语言

进入课程

\n转义字符的用处

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号