C Program to Compare Strings without Using String Functions
This is the C program to compare strings without using predefined string functions
#include<stdio.h>
char string1[100],string2[100];
int flag=1,len1=0,len2=0;
main()
{
int res;
printf("Enter String-1n");
gets(string1);
printf("Enter String-2n");
gets(string2);
while(string1[len1]!='