What's the difference between \r\n and \n.  

  RSS

jintaeks
Active Member
Joined: 10 months  ago
Posts: 7
29/12/2016 3:27 am  

When I was programming with C, I used \r\n instead of \n for a new line. But there is no difference in printf() in Windows 7. What's the difference between \r\n and \n.

printf("Hello World\r\n");
printf("Hello World\n");

Edited: 10 months  ago

ReplyQuote
  
Working

Please Login or Register