
///

#include <iostream>
#include <iomanip>

int main() {
    int var = 100000;
    void* ptr = &var;
    std::cout << "\nptr = " << ptr;
    std::cout << "\n&ptr = " << &ptr;
    std::cout << "\n*reinterpret_cast<char*>(ptr) = "
              << *reinterpret_cast<char*>(ptr); // what type are we pting to?
    std::cout << "\n*reinterpret_cast<int*>(ptr) = "
              << *reinterpret_cast<int*>(ptr);
    std::cout << "\n*reinterpret_cast<short*>(ptr) = "
              << *reinterpret_cast<short*>(ptr); //std::hex <<

}
