int main() { char operand1 = 'n'; char operand2 = 'C'; cout << "Division = " << operand1 / operand2 << endl; cout << "Modulus = " **<< operand1 % operand2** << endl; return 0;}
The quiz in the Arithmetic Operators section marks (B) as being correct. The code uses the mod (%) operator between the two operands 1 and 2. The correct answer in the quiz alludes to a subtraction operator. Am I missing something?
Type your question above this line.
Course: https://www.educative.io/collection/10370001/6619096843026432
Lesson: https://www.educative.io/collection/page/10370001/6619096843026432/5653941187510272