fork download
  1. #include <cstdio>
  2.  
  3.  
  4. int main() {
  5. void * const p = reinterpret_cast<void *>(0xfac1234);
  6. std::printf("%p\t%p\n" , p, nullptr);
  7. std::printf("%#p\t%#p\n", p, nullptr);
  8. }
  9.  
Success #stdin #stdout 0s 2852KB
stdin
Standard input is empty
stdout
0xfac1234	(nil)
0xfac1234	(nil)