R

Rudra Pratap Singh • 3.39K Points
Extraordinary

Q. Which of the following characters returns the cursor to the left of the screen?

  • (A) \t
  • (B) \a
  • (C) \r
  • (D) \n

Explanation by: Rudra Pratap Singh
\r character is used to move the cursor or print head to the beginning of the current line. Example:

#include <stdio.h>
int main() 
{
   printf("Hello,\r World!");
   return 0;
}

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics