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 "<> digit1; cout<<"Enter another digit: "; cin>> digit2; cout<<"Sum of "<> digit1; cout<<"Enter another digit: "; cin>> digit2; cout<<"Sum of "<> digit1; cout<<"Enter another digit: "; cin>> digit2; cout<<"Sum of "<> digit1; cout<<"Enter another digit: "; cin>> digit2; cout<<"Sum of "<> name; cout<<"Hello "<

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!