fork download
  1. const char* p = "lolwut";
  2. const float* f = static_cast<const float*>(p);
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2: error: invalid static_cast from type ‘const char*’ to type ‘const float*’
stdout
Standard output is empty