The Wayback Machine - https://web.archive.org/web/20240205185343/https://www.geeksforgeeks.org/c-input-and-output-question-2/
Open In App
Related Articles

C | Input and Output | Question 2

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

Predict output of the following program 

C




#include <stdio.h>
int main()
{
   printf("\new_c_question\b\r");
   printf("geeksforgeeks");
   getchar();
   return 0;
}


(A)

ew_c_question
geeksforgeeks
 

(B)

new_c_ques
geeksforgeeks
 

(C)

geeksforgeeks
 

(D)

Depends on terminal configuration



Answer: (D)

Explanation:

See https://stackoverflow.com/questions/17236242/usage-of-b-and-r-in-c/%22


Quiz of this Question
Please comment below if you find anything wrong in the above post

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Looking for a place to share your ideas, learn, and connect? Our Community portal is just the spot! Come join us and see what all the buzz is about!


Last Updated : 12 Apr, 2022
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads