πŸ“Š C Programming
Q. Which of the following characters returns the cursor to the left of the screen?
  • (A) \t
  • (B) \a
  • (C) \r
  • (D) \n
πŸ’¬ Discuss
βœ… Correct Answer: (C) \r

Explanation: \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;
}

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;
}

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
224
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Rudra Pratap Singh
Publisher
πŸ“ˆ
89%
Success Rate