In running this program:
#include <iostream>
int main()
{
char *name = "abc";
int i = reinterpret_cast<int>(name);
std::cout<<i<<std::endl;
return 0;
}
I got the following output:
4202656
What does this number represent? Is it a memory address? But, memory address of what? Isn't "abc" stored as an array of characters in memory?
Thanks.