1 2 3 4 5 6 7 8 9 10
void foo(const unsigned char *ptr) { cerr<<ptr; return ; } int main() { char buffer[10] = "hello"; foo(reinterpret_cast<unsigned char const *>(buffer)); }
1
hello