#include <stdio.h>
#include <string.h>
main()
{
    char s1[20], s2[20];
    int result;
    printf("\nEnter first string: ");
    gets(s1);
    printf("\nEnter second string: ");
    gets(s2);
    result = strcmp(s1, s2);
    if (result == 0)
        printf("\nBoth strings are equal");
    else
        printf("\nBoth strings are not equal");
    getch();
}

 OUTPUT:

Enter first string: Programming9.com

Enter second string: Programming9.com

Both strings are equal

Check the same program with out using built-in function