+ 4
What's wrong with this code?[solved]
Please correct it https://code.sololearn.com/cESFaHL6pCZi/?ref=app
3 odpowiedzi
+ 9
https://code.sololearn.com/cCCnNn3YzktQ/?ref=app
+ 12
To access the members of a struct variable we have to use the . (dot operator) between the variable name and the member name.
in your code, you're using comma (,)
e.g. &emp[i],name
change it to &emp[i].name
You can read about structures in this lesson 👇
https://www.sololearn.com/learn/C/2942/?ref=app
+ 6
Thank you Programmer Raja (தமிழன்) and Minho 🇰🇷 😀