Hi, everyone. I need an array with a dynamic capacity. There's a loop that calls a function and the function generates values depending on the input user gives. The loop repeats as long as the function generates numbers. I want to keep those generated values in an array but I don't know if there will be 10 values or 1000 values, that depends on the user. What can I do to increase my array's capacity by 1 each time it repeats so there'll be room for one more result every single time. I guess I should use malloc() or realloc() but I can't exactly understand how. If you guys can post a simple example about it, I would be grateful. Thanks for your help. Have a good day