It's a const
pointer to a const
C string. This means that neither the contents of the string, nor the pointer itself, can be changed.
What is mean by 'char const * const c=" " ' [duplicate]
-
24-03-2022 - |
Question
char const*const variablename = " ";
what does it mean?
is it same as pointer declaration?
Please anyone explain.
Thank you in advance!
Solution
OTHER TIPS
const protects his left side, unless there is nothing to his left and only then it protects his right side.
Applying this to your example, it's a const
pointer to a const
String
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow