Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Could some explain in detail what this code does? #include Kiostream> using namespace std; string sum(string num1, string num2) int overage -0, sum; //convert to

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Could some explain in detail what this code does?
#include Kiostream> using namespace std; string sum(string num1, string num2) int overage -0, sum; //convert to string string min num1, max num2, total //if the length of num is greater than num2 length then set max to num1 and min to num //else do opposite if (num1, length() num2. length max num1. min num2 else max num2 min num1. int i for (i min. length ()-1; i i--)f sum min[i] max[i max. length min length overage 2* '0 overage sum/10; sum 10; //convert the total to a char

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Database Security Applications And Trends

Authors: Michael Gertz, Sushil Jajodia

1st Edition

1441943056, 978-1441943057

More Books

Students also viewed these Databases questions