mercredi 11 août 2021

Is const keyword mandatory while declaring"constexpr char*" string?

The project that I have just started working on has many instances of following,

constexpr const char* str = "Some Character(s)";

I wanted to understand, is the "const" keyword in above statement not redundant, as constexpr is implicitly constant?

Aucun commentaire:

Enregistrer un commentaire