#include <stdio.h> #include<string.h> int main() { char str1[20] = "prayag Aimtocode"; char str2[20] = "prayag Aimtocode"; int i, j = 0; for(i=0; str1[i]!='\0'; i++){ if(str1[i] == str2[i]) { j++; } else { j++; printf("The strings str1 and str2 are not equal"); break; } } if(i==j) printf("The strings str1 and str2 are equal"); return 0; }