-5
I need to solve an exercise where I need to use pointers, vectors and memory storage:
Create a vector with n elements, and each vector position will match a pointer to a value of type
float
. Make the read n values and store them in memory.
I believe it is not very complex, but I am still studying the subject and it would be good to have this exercise solved to see how things work.
Thanks for helping me out, man! I was in doubt about the use of malloc and how he would like you to do the pointer, because after so many slides explaining, I still missed catching the ~essence~ of the business. With this example things seem clearer. I have 24 more exercises to continue now, thank you!
– Léo Eduardo Silva