Monday, 21 November 2011

Predict the output or error(s) for the following:

main()

{

printf("\nab");


printf("\bsi");


printf("\rha");


}

Answer:

hai


Explanation:

\n  - newline


\b  - backspace


\r  - linefeed

3 comments: