PocketPixie
Where is the letter of the array saved?
Hello everyone,
Just a quick question. I understand this code based upon the comments but I am wondering why ans just being incremented has anything to do with the logic in comparing where index i is in the string?
How does the program know how many D's are in the string if it just increments after coming across a D or a d? Where does it 'keep' the d or D?
7 replies