Write a program to compare two files, printing the first line where they differ. Here's Rick's solution: /****************************************************** KnR 7-6 -------- Write a program to compare two files and print the first line where they…