Posts by Luiz • 11 points
1 post
-
0
votes1
answer48
viewsQ: I have dynamically stored memory of a vector in C, does not return the allocated size, why?
This code is an example of another code with the same problem. I dynamically stored the memory, but when I’m printing the vector size with the len, strangely prints 1 and not 10 as expected. The…