+ 1
How to pass struct datas from function to function? More details in code.
https://code.sololearn.com/cWOM43OyAX14/?ref=app Added entries doesnt get saved
5 odpowiedzi
+ 3
Hi. I modified code and added comments.
https://code.sololearn.com/cA10a7A25A22
Pointers are tricky. Make sure not to use the same name for the pointer to use with that variable. at least name it with a p before, u could've used padd instead.
The code still needs work in case ppl enter negative numbers or zero.
+ 3
Pass a pointer to the struct and dereference it inside the function.
+ 2
you could look at this example
https://code.sololearn.com/cA2A16a14A22/?ref=app
+ 1
sorry but, im still struggling with how or what that means, can you be more specific about what should i do? im barely getting by the concept of pointers that much