Pergunta de entrevista da empresa CAE

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

Resposta da entrevista

Sigiloso

6 de nov. de 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