are these declaration same?
const char *const s;
char const *const s;

Yes, they're the same.

It only matters whether the const appears before or after the *. If it appears before the * it does not matter whether it appears before or after the typename.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.