Showing posts with label Program 18. Show all posts
Showing posts with label Program 18. Show all posts

Wednesday, 12 August 2020

Program 18

 Program 18

Write a function called first_diff that is given two strings and returns the first location in which the strings differ. If the strings are identical, it should return -1.

Program:



Output: