home
Learn
screen_rotation
#include <stdio.h> #include <string.h> #include <conio.h> void main(){ char str1[50]; char str2[50]; int con; clrscr(); printf("Eenter first string:-"); gets(str1); printf("\nEenter second string:-"); gets(str2); con = strcmp(str1,str2); if(con==0){ printf("\n both are equal."); } else{ printf("\n both are equal."); } getch(); }
Program Output
Eenter first string:-w3google Eenter second string:-w3google both are equal.