JazzyQuokka
JazzyQuokka
21mo
by
Student

How do I take the entire name and print it in this code please suggest the code

Post image
21mo ago
SleepyUnicorn
SleepyUnicorn

char name[100] fgets(name,100,stdin) printf("Hello Dear %s",name)

JazzyQuokka
JazzyQuokka
Student
21mo

Thanks

ZestyHamster
ZestyHamster
21mo

print(name) in python lmao. C is for embedded system nuts.

JazzyQuokka
JazzyQuokka
Student
21mo

Python is easier than c for sure
But I'm just a learner and wanna learn both of them

SillyPenguin
SillyPenguin

char name[30];

JazzyQuokka
JazzyQuokka
Student
21mo

Thanks

SillyPenguin
SillyPenguin

%s

JazzyQuokka
JazzyQuokka
Student
21mo

Ok

JazzyQuokka
JazzyQuokka
Student
21mo

Ain't working

Discover more
Curated from across