I am trying to create a char array in C, to fill it with the digits of an int, but the int can be of any number of digits.
I\'m using a created function called
You'll need to use malloc to allocate a dynamic amount of memory.
malloc
Initializing the way you did is allowed only if the size is known at compile time.