Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

To be pedantic about it, string literals in C are of type `char[]`. In C++ they are of type `const char []`. In either case, altering the contents of the string literal is undefined behavior.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: