\n is called as line break which is used to break the line while printing the statement on the Console.
"Mystring" will print
"MynString" will print
printf("My programming is Good\n");
printf("My programming\nis 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.