C | Input and Output | Question 2
Predict output of the following program
#include <stdio.h> int main() { printf ("\new_c_question\by"); printf ("\rgeeksforgeeks"); getchar (); return 0; } |
(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
Want to learn from the best curated videos and practice problems, check out the C Foundation Course for Basic to Advanced C.