The code has a compile-time error
It complains:Code:char str[9] ; str = "dEAdbeef";
However when I modify the code to:cannot convert from 'const char [9]' to 'char [9]'cannot convert from 'const char [9]' to 'char [9]'
It works! The compiler doesn't complain anything! How come assigning a 'const char [9]' to 'char *' can work? I think at least it shall cast away the const-ness of "dEAdbeef", right?Code:char* str ; str = "dEAdbeef";