How to solve access violation writing location error?

No, you should not. “Hello world” is a constant string literal, you need to allocate memory using malloc() in C, or new in C++ if you want memory you are free to modify.

Leave a Comment