Cpp simple question
I'm declaring an array (char arr for example) and i do this: cin >> arr Will it go to arr or somwhere else? I will be so greatful if you answer it right now😊
When you write like this cin >> arr the compiler knows the exact position, that is where to store the value in the array, what's the row and column but when you write like this cin >> arr Now this time compiler will get confused. It knows that it has to store the value somewhere in the second row but it does not know the column index. So it doesn't have the exact position to store the variable and will give error asking programmer to give the exact position.
For me it does, but if for you it doesn't just try to cout  and , and see what's the value
It will just display error.
It does give error
No problem 😊, in case of char input(char array), it will work without errors
olek, but it doesn't
nautaxh, please then explane why🤔
Ahh, actualy i didn't mention that it is a char input not int, sorry😅