Hello, I'm bit new at C, the problem I'm having is I want to count the number of times printf will print. So say printf print 3 times, I want to be able to count that and then print it. This is just a part of a larger piece of code. I hope what I'm asking makes sense, any hints towards the right direction would be much appreciated!

Also, I tried counting the number of time printf prints by using y++, but it comes out in a weird number.

Code:
//looping through both arrays, if letters don't match, print
for (k = 0; k<strlen(myArrayTwo); k++){
     if(myArray[k] != myArrayTwo[k])    


    y++;


printf("The word %s differs from its reverse in %d places.\n",myArray, y);
}