Why "++" operator over bool is defined?? however "--" is not in C++ -
this question has answer here:
- bool operator ++ , -- 4 answers
i wondering why ++ operator defined on bool... when tried --operator, not defined bool..
can please explain me reason behind that?
refer documentation: https://msdn.microsoft.com/en-us/library/tf4dy80a.aspx
when postfix or prefix ++ operator applied variable of type bool, variable set true. postfix or prefix -- operator cannot applied variable of type.
Comments
Post a Comment