The example you posted should not compile.
If your compiler compiles this then my guess is that it simply ignores
const in this context, i.e., treats it as a comment. The compiler writers are creating the illusion that their compiler supports
const parameters when it actually does not. Try compiling your program with and without the
const and see if the two executables differ in size, particularly the size of the data segment.