CAE Interview Question

What does "const" means in C/C++?

Interview Answer

Anonymous

Nov 6, 2020

More things. If a method is marked "const", it means that it does not change object data, if a variable, parameter or member, it means that it won't be changed. I've noticed that stdlib's strlen() etc. don't use const, for compatibility reasons.

1