Contact: aviboots(AT)netvision.net.il
41,379 questions
53,922 answers
573 users
#include <iostream> int main() { char ch = 97; int *p = static_cast<int*>(&ch); } /* run: test.cpp: In function ‘int main()’: test.cpp:6:14: error: invalid ‘static_cast’ from type ‘char*’ to type ‘int*’ 6 | int *p = static_cast<int*>(&ch); */