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; } |
chevron_right
filter_none
(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
Recommended Posts:
- C | Input and Output | Question 13
- C | Input and Output | Question 3
- C | Input and Output | Question 5
- C | Input and Output | Question 12
- C | Input and Output | Question 13
- C | Input and Output | Question 4
- C | Input and Output | Question 11
- C | Input and Output | Question 13
- C | Input and Output | Question 6
- C | Input and Output | Question 9
- C | Input and Output | Question 8
- C | Input and Output | Question 13
- Basic Input and Output in C
- Input-output system calls in C | Create, Open, Close, Read, Write
- Output of C Program | Set 29



