C Programming - Strings - Discussion
Discussion Forum : Strings - General Questions (Q.No. 3)
3.
How will you print \n on the screen?
Answer: Option
Explanation:
The statement printf("\\n"); prints '\n' on the screen.
Discussion:
23 comments Page 3 of 3.
Vinod said:
1 decade ago
This is verbatim string. Putting any special character after "\" sign ignoresthe next character for compilation.
Shashank said:
1 decade ago
Give me specific reason about this answer. Why there is "\\" is used ?
Sunny said:
1 decade ago
Great. Really good one example.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers