Friday, February 15, 2013

Predict the output or error(s) for the following


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

No comments:

Post a Comment