Why use const function in c++
Answers
Answered by
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.
in simple terms const helps in preventing us from mutating a variable.
Similar questions