Why is conversion from string constant to ‘char*’ valid in C but invalid in C++
The C++11 Standard (ISO/IEC 14882:2011) says in § C.1.1: char* p = “abc”; // valid in C, invalid in C++ For the C++ it’s OK as a pointer to a String Literal is harmful since any attempt to modify it leads to a crash. But why is it valid in C? The C++11 says also: … Read more