I want to have chars and ints inside one array. What i am trying to do is have 1 to 9 in my array and the user selects which number to replace with the letter X. How can i have this done? I assume i cant pass chars into an array that is called as int array[8]; So is there a way to have both ints and chars in an array?
I want to have chars and ints inside one array. What i am trying
Share
In c++
ints andchars are almost the same thing. They are both stored as numbers, just with different resolutions.