[ create a new paste ] login | about

Link: http://codepad.org/nDZCA2zX    [ raw code | output | fork ]

C++, pasted on Apr 10:
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));
}


Output:
1
hello


Create a new paste based on this one


Comments: