+ 4

What's wrong with this code?[solved]

Please correct it https://code.sololearn.com/cESFaHL6pCZi/?ref=app

26th Jan 2021, 8:00 AM
k R :)
k R :) - avatar
3 odpowiedzi
+ 9
https://code.sololearn.com/cCCnNn3YzktQ/?ref=app
26th Jan 2021, 8:23 AM
Programmer Raja
Programmer Raja - avatar
+ 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
26th Jan 2021, 8:19 AM
Minho
Minho - avatar
26th Jan 2021, 8:49 AM
k R :)
k R :) - avatar