Tag: constants
-
Does a const char* literal string persistently exist as long as the process alive?
12 I have functions like the following: const char* get_message() { return "This is a constant message, will NOT change forever!"; }; const char* get_message2() { return "message2"; }; And I’m planning to use them everywhere my app, even though in different threads. I’m wondering about the life time of these strings, i.e. whether it’s…