C program to accepts two strings and compare

Editorial Staff - - C Programming Tutorial


In this program, we are going to share a C program to accepts two strings and compare. If you are a beginner and want to start learning the C programming, then keep your close attention in this tutorial as I am going to share a C program to compare two strings with the output.

We have designed this program for beginners for learning purpose. Copy below c program and execute it with c compiler to see the output of the program.

Program Output

Enter a string: hello
Enter another string: world
String1 is less than string2


About: Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari