I am going to have a user give me 20 numbers, separated by commas.
Why is it that I can not specify the dimension of an aray and “directly” assign the users input to this array? Or, is it possible to do this, but I have just been typing my code wrong to achieve this?
I have been looking at looking at the strtok function, but wouldn’t that turn the array into a char array as the commas will be present? I would like the array to be an int, as the user will be giving me integers only. Any ideas will be greatly appreciated.
Thank you!