Computer Science, asked by rish2057, 1 year ago

Why use const function in c++

Answers

Answered by Anonymous
0
Const Qualifier. A keyword or other means for asserting that a type (or a reference to a type) is (or ought to be) immutable, and/or an object method will not modify the state of the object.

in simple terms const helps in preventing us from mutating a variable.
Similar questions