1.

What is the special escape sequence for newline in C++?(a) ‘\b’(b) ‘\m’(c) ‘\n’(d) ‘\\’This question was posed to me in a job interview.Question is from String Manipulation in section Arduino Programming of Arduino

Answer»

Right choice is (C) ‘\N

To explain: The newline character is used for SHIFTING the CURSOR to the next line for any output to the MONITOR. It is mostly used for formatting output. During execution this escape sequence is converted to the OS Specific newline representation.



Discussion

No Comment Found

Related InterviewSolutions