title: How to declare constexpr C string?
body: <p>I think i quite understand how to use the keyword <code>constexpr</code> for simple variable types, but i'm confused when it comes to pointers to values.</p>
  
  <p>I would like to declare a constexpr C string literal, which will behave like</p>
  
  <pre><code>#define my_str "hello"
  </code></pre>
  
  <p>That means the compiler inserts the C string literal into every place where i enter this symbol, and i will be able to get its length at compile-time with sizeof.</p>
  
  <p>Is it <code>constexpr char * const my_str = "hello";</code></p>
  
  <p>or <code>const char * constexpr my_str = "hello";</code></p>
  
  <p>or <code>constexpr char my_str [] = "hello";</code></p>
  
  <p>or something yet different?</p>