0 votes 0 votes What is o/p printed when i/p is =1 2 3 Programming in C programming-in-c + – Rustam Ali asked Aug 29, 2018 Rustam Ali 1.0k views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes 'scanf' returns the number of items successfully read so 3 -1-2-3 Dharmendra Lodhi answered Aug 29, 2018 Dharmendra Lodhi comment Share Follow See all 7 Comments See all 7 7 Comments reply Show 4 previous comments Mizuki commented Aug 29, 2018 reply Follow Share Oh Gosh! Thank you! 0 votes 0 votes Shaik Masthan commented Aug 29, 2018 reply Follow Share i hope return values of printf or scanf never asked in GATE. 1 votes 1 votes Dharmendra Lodhi commented Aug 29, 2018 reply Follow Share yes.. hope so 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Answer will be: 3 (By printf("%d",scanf("%c%c%c",&x,&y,&z);) -1- -2 (By printf("\n-%c-%c-%c",x,y,z);) rtiwari95 answered Aug 29, 2018 rtiwari95 comment Share Follow See all 2 Comments See all 2 2 Comments reply Mizuki commented Aug 29, 2018 reply Follow Share -1- -2 (By printf("\n-%c-%c-%c",x,y,z);) Do you mean -1-2-3 ? Also why is the output 3 here? Answer will be: 3 (By printf("%d",scanf("%c%c%c",&x,&y,&z);) 0 votes 0 votes Rustam Ali commented Aug 29, 2018 reply Follow Share Why -1- - 2(in second line)? 0 votes 0 votes Please log in or register to add a comment.