Category: C/C++

const pointer to const memory… what?

After several years I found lots of people – and me 🙂 – still confused about the pointer declarations – if it contains some const keyword somewhere. So const char * or char const * or char * const still confusing. To keep it simple: read it backward as this excellent post describes: Clockwise/Spiral rule So: const char * is equivalent […]