I want to make stack which work with dynamic memory allocation, but I need to know about which it is more efficient :
to have an initial size like 10 for example , and then I double it if I need more.
or I can have an initial size = 1 and for every new input adding one place . !?!
int *tmp = malloc(sizeof(int) * 2 * dm->capacity); \* dm->capacity = 10 *\
int *tmp = malloc(sizeof(int));