I want to be able to take input with a function but I want to store the information. Is there anyway to declare a variable that doesn't have a name and only can be accessed by a pointer?
something like this:
float* = float NULL 5;
Thanks.
EDITED: What I needed to do was to have an infinite amount of arrays that store a very large amount of ints. However, I am loading all this data from files and I need to access it from many other classes. I know how many times the function is run so i can keep them in an array but I don't know how many ints are or potentially are loaded
So the pointers son't need to have names because they will be stored in an array to be used later. I just wanted to be able to create global variables multiple times and just access them from an array.