fork download
  1. int main()
  2. {
  3. unsigned char* p;
  4. static_cast<const char*>(p);
  5. }
Compilation error #stdin compilation error #stdout 0s 3292KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:4:31: error: invalid static_cast from type ‘unsigned char*’ to type ‘const char*’
     static_cast<const char*>(p);
                               ^
stdout
Standard output is empty