C | Input and Output | Question 2

Predict output of the following program

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


(A) ew_c_question
geeksforgeeks

(B) new_c_ques
geeksforgeeks

(C)
geeksforgeeks

(D) Depends on terminal configuration


Answer: (D)

Explanation: See http://stackoverflow.com/questions/17236242/usage-of-b-and-r-in-c

Quiz of this Question



My Personal Notes arrow_drop_up