Thursday 14 March 2013

Escape sequence example


main()
{
printf("\nab");
printf("\bsi");
printf("\rha");
}
Answer:
hai
Explanation:
\n  - newline
\b  - backspace
\r  - linefeed


Blog Author: Vijay Kumar

Go to: Java Aptitude

No comments:

Post a Comment