A function can have both the const and non-const version in the same program.

A function can have both the const and non-const version in the same program. Correct Answer True

The functions in a program can be made both const and non-const. This feature is made available to make programming more flexible. This ensures the security too as we can call const function whenever required.

Related Questions

How is it possible to have both const and non-const version of a function?
When both the const and non-const version of functions are required?
What will the given C code do?
int memcmp(const void *str1, const void *str2, size_t n)
What will be returned in the following C code?
size- t strlen(const char *s)const char *sc;for(sc = s; *sc!= ' \ O ' ; ++sc)return(sc - s) ;
What will be the output of the following PHP code? () { define("const","I am awesome!"); echo constant("const"); } one(); ?>
If a const object calls a non-const member function then ____________________
If const version of a function when overloading is used, the function ___________________