+ 1

cout<<gets(stdin)

\\\\plz explain it along with header file

16th Jun 2017, 12:05 AM
Bibek Ghimire
Bibek Ghimire - avatar
3 Answers
+ 1
can you post a code with this line that compiles cleanly please?
24th Jun 2017, 12:55 PM
Venkatesh Pitta
Venkatesh Pitta - avatar
24th Jun 2017, 3:31 PM
Bibek Ghimire
Bibek Ghimire - avatar
+ 1
cout is given an expression which in this case is a function call that returns a pointer to char containing a string. so gets is evaluated and the return value from gets is output. does this help?
24th Jun 2017, 8:14 PM
Venkatesh Pitta
Venkatesh Pitta - avatar