Method to Print '\n' in C
How to print "\n" in C language?
Answers
Answered by
0
to print "\n" is to keep \ infront of \n
it will be "\\n" then you will get \n as output
it will be "\\n" then you will get \n as output
Answered by
0
printf() function :
Explanation:
- The printf function is used in the c-programming language to display the output. It is defined in the stdio header file.
- When any user wants to display something on the output screen then he needs to first include the header file stdio.h and then he needs to use this function by the help of "printf("any string")" or printf("format string", variable_name) syntax.
- In this syntax, the format string refers to the predefined format which is used to states the types of data. for example "%d" is used for integer.
Learn More :
- C-program : https://brainly.in/question/12809215
Similar questions