Question: Question 4 [35 points). Write a function that gets a string representing a positive integer and an int between 0 and 9. The function multiplies

Question 4 [35 points). Write a function that gets a string representing a positive integer and an int between 0 and 9. The function multiplies that two numbers and returns the result in a string. char* mult_number_by_digit (const char* num, int digit); For example: mult_number_by_digit("12340", 6) returns "74040". - mult_number_by_digit("9", 0) returns "0". - mult_number_by_digit("8", 1) returns "8". - mult_number_by_digit("9999999999999", 3) returns "29999999999997". 1. You may assume that the input is always legal, i.e., the string is a positive integer correctly formatted, and 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
