C or C++ : Arithmetic operation on boolean