C++ string literal data type storage

it is packaged with your binary — by packaged I mean hard-wired, so yes you can return it and use it elsewhere — you won’t be able to alter it though, and I strongly suggest you declare it as:

const char * x = "hello world";

Leave a Comment