Question: 5. (15 points) Write a Pep/9 subroutine that is equivalent to the following C function int difffrom (char C, char SI1) // returns the number
5. (15 points) Write a Pep/9 subroutine that is equivalent to the following C function int difffrom (char C, char SI1) // returns the number of characters in null-terminated string S // that are different from C int count-0, i-0; while (s[i] != 0) if (S [i] i++i != C) count++; return count
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
