c++ or code example Example: how to write an or in c++ if (a == 0 || b == 0) { //statement here, || was used as an or }