1. It asks user to give a string input
2. it then stores it in the array str1
3. It again asks for another string
4. It stores it in array str2
5. it defines i, j , flag and uses i and j with str1 and str2 respectively to increment the array element one by one unless it encounters a null string or simply the end of string { because after the input is complete the array will fill all the element with 0 , hence 0 signifies the end of string given by the user. }6. for(i=0,j=0;str1[i]!='\0',str2[j]!='\0';i++,j++)here it increments array elements one by one for both and thenif(str1[i]==str2[j])code check if any of the element is equal or not.
7. If any single element is equal in both of the string it prints " st a n eq " and if not " st a eq " gets printed
1. It asks user to give a string input
2. it then stores it in the array str1
3. It again asks for another string
4. It stores it in array str2
5. it defines i, j , flag and uses i and j with str1 and str2 respectively to increment the array element one by one unless it encounters a null string or simply the end of string { because after the input is complete the array will fill all the element with 0 , hence 0 signifies the end of string given by the user. }6. for(i=0,j=0;str1!='\0',str2[j]!='\0';i++,j++)here it increments array elements one by one for both and thenif(str1[i]==str2[j])code check if any of the element is equal or not.
7. If any single element is equal in both of the string it prints " st a n eq " and if not " st a eq " gets printed
1. It asks user to give a string input
2. it then stores it in the array str1
3. It again asks for another string
4. It stores it in array str2
5. it defines i, j , flag and uses i and j with str1 and str2 respectively to increment the array element one by one unless it encounters a null string or simply the end of string { because after the input is complete the array will fill all the element with 0 , hence 0 signifies the end of string given by the user. }6. for(i=0,j=0;str1!='\0',str2[j]!='\0';i++,j++)here it increments array elements one by one for both and thenif(str1[i]==str2[j])code check if any of the element is equal or not.
7. If any single element is equal in both of the string it prints " st a n eq " and if not " st a eq " gets printed
1. It asks user to give a string input
2. it then stores it in the array str1
3. It again asks for another string
4. It stores it in array str2
5. it defines i, j , flag and uses i and j with str1 and str2 respectively to increment the array element one by one unless it encounters a null string or simply the end of string { because after the input is complete the array will fill all the element with 0 , hence 0 signifies the end of string given by the user. }6. for(i=0,j=0;str1!='\0',str2[j]!='\0';i++,j++)here it increments array elements one by one for both and thenif(str1[i]==str2[j])code check if any of the element is equal or not.
7. If any single element is equal in both of the string it prints " st a n eq " and if not " st a eq " gets printed
So what i got is by default flag is 0 and it can be changed only if both str1 and str2 will be of same length and if they are of same length and if any index let say 'x' at which character value of both str1 and str2 is same then flag will be set to 1 provided common index should be found before 32. I have decided to have a look on this chalange because it was posted by u brother im following u from a long time , ur works are super .