>>105733450>Can a C greybeard explain what each const means here?what op posted is not valid c, there is at most 2 consts in a variable decl, so it should be:
const char* const post =
and its actually not that complicated. The first const char is the pointed to type, a const char. The second const after the * is for the pointer itself, it means the pointers value (what it points to) cannot be changed either.
So you cant do:
const char* const post = "1";
post = "2"; //cant reassign the pointer because its const