I\'m pretty new to new C and I wasn\'t able to find anything related to this (maybe because I\'m not really sure what I\'m looking for).
I\'m trying to create a int
You don't declare an array without a size, instead you declare a pointer to a number of records.
so, if you wanted to do
int bills[];
The proper way to do this in C is
int* bills;
And you will have to allocate the size at some point in time and initialzie the array.
bills = (int*)malloc(sizeof(int)*items);
The same goes for arrays of other data types. If you don't know the size of the array until runtime, you should use pointers to memory that is allocated to the correct size at runtime.