File Based Program in C Language or C Programming

WAP to compare the contents of two files and determine whether they are same or not.

WAP to check whether a given word exists in a file or not. If yes then find the number of times it occurs.