What is line break in C programming by R4R Team

\n is called as line break which is used to break the line while printing the statement on the Console.

Example-
"Mystring" will print
Mystring
while
"MynString" will print
My
String


program-

#include< stdio.h>
int main()
{
printf("My programming is Good\n");
printf("My programming\nis Good");
}


output-

My programming is Good
My programming
is Good

-In this program, we print two statement and in second statement "My programming\nis Good", we use line break(n), so it reflect the above output.




Leave a Comment:
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!