#include #include #include //for strlen using namespace std; void f(); int main() { unsigned char a[] = "hello"; cout << "The length is " << strlen(reinterpret_cast(a)) << ".\n"; short s = 0x1234; if (*reinterpret_cast(&s) == '\x12') { cout << "Host is big endian.\n"; } else { cout << "Host is little endian.\n"; } cout << f << "\n" << "The address of f in decimal is " << reinterpret_cast(f) << ".\n" "The address of f is " << reinterpret_cast(reinterpret_cast(f)) << ".\n"; return EXIT_SUCCESS; } void f() { cout << "f\n"; }