0
I don't know why my program is giving me garbage values
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
+ 1
Thanks Tibor Santa 🙌