So a char array can be simply printed using the %s. Is their also an EASY was to print a int array for must I create some kind of loop to do it? I am doing a test writing a random number generating guessing game, and I want to populate an array with ints.
I was testing my program as I went along to check to see if the array was populated correctly. I was having to do it 1 at a time since my array was an int and not a char.
-Lars
EDIT: I found another way of doing this that works. Thanks
I was testing my program as I went along to check to see if the array was populated correctly. I was having to do it 1 at a time since my array was an int and not a char.
-Lars
EDIT: I found another way of doing this that works. Thanks
Last edited: