Question: 1) Given the code fragment below, what does it print when the user enters 2 and then 3? Could you explain why the result is
1) Given the code fragment below, what does it print when the user enters 2 and then 3? Could you explain why the result is not 5? // 0 to 9 char digit1, digit2; cout<<"Enter a digit: "; cin>> digit1; cout<<"Enter another digit: "; cin>> digit2; cout<<"Sum of "<
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
