+ 7

What is difference between gets(), getline() and cin>>??

25th Nov 2018, 8:46 AM
Frozen Pearl
Frozen Pearl - avatar
2 Réponses
+ 4
Thank u Sai
25th Nov 2018, 9:49 AM
Frozen Pearl
Frozen Pearl - avatar
+ 2
gets()-used to get char input getline()-used to get string type input cin>>Its an input stream that allows you to get data from the user eg integers,strings,chars etc
25th Nov 2018, 9:33 AM
Mensch
Mensch - avatar