|You've declared str1 and str2 as a char arrays twice. Omit the "char" the second time|
str2 = "Ali";
str1 = "Dany";
But that's still not going to work, because now you're trying to assign character arrays (strs) to chars (str2 is a char). You need:
It should then compile OK. But it's still not going to do anything; you need to print the value of "i" each time to see what is happening.