How would you got about doing something along the lines of:
This gives an error because size is not set. Even if I initialize size at start up and then give it a value later on, array[size] will remain at the original value of size. I am trying to avoid declaring the char array after getting the info from the user. Dont ask me why but thats what I want to do. I believe it is possible but not sure. Thanks for any feed back.Code:int size; char array[size];
Bitphire