Does a const char* pointing to a string literal persistently exist as long as the process alive?
Does a const char* pointing to a string literal persistently exist as long as the process alive?
I hope you found a solution that worked for you :)
The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA.
Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!
(stackoverflow.com/users/10441038/leon)Leon
(stackoverflow.com/users/16920195/christian-halaszovich)Christian Halaszovich
(stackoverflow.com/users/649665/james-kanze)James Kanze
(stackoverflow.com/users/9556832/drazen-grasovec)Drazen Grasovec
A special thanks goes out to the (stackoverflow.com/questions/77551316/does-a-const-char-pointing-to-a-string-literal-persistently-exist-as-long-as-th)Stackexchange community
I wish you all a wonderful day! Stay safe :)
If anything is off, please write me at peter D.O.T schneider A.T ois42.de
null-terminated lifetime c++ constexpr constants