Help to correct a mistake | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help to correct a mistake

In line 53 there is a pointer "str" which changes while changing "STUD[p - 1].name". How to correct it? What should I use instead of this pointer? Thanks a lot! https://code.sololearn.com/cP981CTl5gIJ/#c

2nd Dec 2018, 4:40 PM
Sabina Nikolaeva
Sabina Nikolaeva - avatar
3 Answers
+ 2
Unfortunately, I am not a guru in C. the Problem is interesting. But it would be easier to understand if you tried to make a shorter and more complete code, which would show this error.
3rd Dec 2018, 5:19 PM
And Chur
And Chur - avatar
0
I don't even understand how to do it. Can you show the code, please?
3rd Dec 2018, 7:58 AM
Sabina Nikolaeva
Sabina Nikolaeva - avatar
0
It may work if STUD[p-1].name or STUD[p].name would be admissible for change, but they are not
3rd Dec 2018, 5:06 PM
Sabina Nikolaeva
Sabina Nikolaeva - avatar