Compare Two Strings

in Hindi - Compare Two Strings



not yet

Source Code :

RUN#include <iostream>
#include <string.h>
using namespace std;

int main(){

char str1[10]="Hello";
char str2[10]="World";

if(strcmp(str1,str2)==0){

cout<<"strings are equal";
}
else{

cout<<"Strings are not equal";
}
return 0;
}