0

I don't know why my program is giving me garbage values

https://code.sololearn.com/cKUUWCxX28c2/?ref=app

21st Aug 2020, 3:29 PM
Gaurav Kamble
Gaurav Kamble - avatar
2 ответов
0
When you print just remove the ampersand from std[i] printf ("\nyour name is= %s\n your roll no is= %d",std[i].name,std[i].roll); And the input sequence is like name, number, name, number. All in new lines. Example: A 1 B 2
21st Aug 2020, 3:36 PM
Tibor Santa
Tibor Santa - avatar
+ 1
Thanks Tibor Santa 🙌
21st Aug 2020, 3:45 PM
Gaurav Kamble
Gaurav Kamble - avatar