#include<stdio.h>
#include<string.h>
#define Max_size 100
int main(){
char str1[Max_size]="Program to compare two strings";
char str2[Max_size]="strings";
int com=strcmp(str1,str2);
if(com==0){
    printf("Both are equal");
}
else{
    printf("Both are not equal");
}
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: