Skip to content
Related Articles

Related Articles

C | Input and Output | Question 2

View Discussion
Improve Article
Save Article
  • Difficulty Level : Medium
  • Last Updated : 12 Apr, 2022
View Discussion
Improve Article
Save Article

Predict output of the following program 

C




#include <stdio.h>
int main()
{
   printf("\new_c_question\by");
   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 http://stackoverflow.com/questions/17236242/usage-of-b-and-r-in-c


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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!