I am reading some c++, and I have as the title says something I cant grasp my mind to;
-
Why does an int x; while being couted out, return some random integer number like "-230202043", meanwhile as you cout out;
-
int Arr[5]; cout << Arr+number;
-
It couts out the memory adress of the element.
-
But if you would cout out a memory adress for int x; you would have to cout << &x;
-
Why is it not the same for arrays? Why don't you use the & symbol to get the arrays adress?
Thank you!
