Question: In C++ code Define a function with the prototype below: int difference(char s[], char t[]) The difference function subtracts corresponding characters of t from s
In C++ code

Define a function with the prototype below: int difference(char s[], char t[]) The difference function subtracts corresponding characters of t from s and returns the total difference. If s is longer than t we will add in the remaini ng characters of s to the total. If t is longer than s we will subtract the remaining characters of t from the total. Example s= "3AB", t="7C " Then the return value will be ()+(AC)+CB=4+2+66=60 No calls to library functions allowed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
