All pastes #363950 Raw Edit

Untitled

public text v1 · immutable
#363950 ·published 2007-02-19 20:40 UTC
rendered paste body
here is a little c++ code, you may notice the char *ptr= false
so a char * and a bool, with an implicit conversion... 
i dont get how it is possible.


#include <iostream>
main()
{
  char *  ptr = false;
  std::cout << "value=" << (int)ptr << std::endl;
  return 0;
}