I\'m trying to store the value of an address in a non pointer int variable, when I try to convert it I get the compile error \"invalid conversion from \'int*\' to \'int\'\" this
You can do this:
int a_variable = 0; int* ptr = &a_variable; size_t ptrValue = reinterpret_cast(ptr);