Reading string Methods scanf() gets() | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Reading string Methods scanf() gets()

if the string is "welcome to c" then scanf() reads up to welcome.(space considered to be end of the string) but in gets() it reads complete string i.e welcome to c.

3rd Dec 2018, 11:50 AM
Karimulla Shaik
Karimulla Shaik - avatar
1 Réponse
+ 1
Is there a question and I just don't see it?
3rd Dec 2018, 1:30 PM
HonFu
HonFu - avatar