Programming Languages C Objective
Mar 08, 2013

What will be output of the following c code?

void main()
 {
  char *url="c:\tc\bin\rw.c";
  printf("%s",url);
 }

Choose the correct answer:
A) w.c in
B) c:\tc\bin\rw.c
C) c: c inw.c
D) Compiler error
Detailed Explanation

1. \t is tab character which moves the cursor 8 space right.
2. \b is back space character which moves the cursor one space back.
3. \r is carriage return character which moves the cursor beginning of the line.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback