+ 1
How to access array of structure through pointers.
For example I want to store student data in one struct student and then create an array of that students and write on that array through pointer to that array. Is it possible. If yes,can you link some aource to learn it.?
2 odpowiedzi
+ 5
You need to use arrow operator '->' for that just like Károly Komjáti showed in his code
+ 3
Try this example:
https://code.sololearn.com/cTZuE9l9r1tb/#cpp