0

What is the need of \n in output window?

hello\n world. what sense will this make with \n

5th Nov 2016, 4:30 AM
Dinesh Devaki
Dinesh Devaki - avatar
3 Réponses
0
lets look at it from a different perspective. Imagine you're writing something in Microsoft word, for a line break, you press enter, so when you press enter, your cursor goes down a row and all the way to the left. ......[pressed enter] [first the cursor comes here] [and then, here] so ultimately it will look like ...... | <--- your cursor. what \n stands for is exactly the same. \n means to print a new line.
5th Nov 2016, 5:09 AM
Tauki Tahmid
Tauki Tahmid - avatar
0
Thats fine. i thought \n will be shown in the output window. (by reading the content provided.)
5th Nov 2016, 5:18 AM
Dinesh Devaki
Dinesh Devaki - avatar
0
we use \n to change line
5th Nov 2016, 6:39 AM
Anis Kamarulzaman
Anis Kamarulzaman - avatar