Category: C Language

C Program to match Two String Utilizing strcmp() Operate

Programmer's Academy

  Code:  #embody <stdio.h> int most important() {     char a[100],b[100];     printf(“Enter 1st string:”);     scanf(“%s“,&a);     printf(“Enter 2nd string:”);     scanf(“%s“,&b);     if(strcmp(a,b)==0)     {         printf(“The Strings are Equal”);     }     else if(strcmp(a,b)>0)     {         printf(“%s String is higher”,a);

Continue Reading →