What is the use of \n \t \0 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What is the use of \n \t \0

I have encountered use of this in many programs please explain

19th Aug 2019, 12:39 PM
Khushi Puri
Khushi Puri - avatar
4 Answers
+ 5
"\n": Line break "\t": Tab character "\0": String terminator, NULL character
19th Aug 2019, 12:50 PM
Airree
Airree - avatar
+ 5
\n creates a new line \t create space between character \0 nothing happen
19th Aug 2019, 12:49 PM
Farhan
Farhan - avatar
+ 1
Improved readability and string termination (language dependent).
19th Aug 2019, 2:33 PM
Sonic
Sonic - avatar
0
\n - new line \t - tab \0 - end of the string (NULL)
20th Aug 2019, 11:27 PM
Baltazarus
Baltazarus - avatar