Programming: Using the While Loop (Loop Through Pointer Variable)

To loop through a set of characters using a pointer:



while(*StringOfCharacters > 0) { Send_A_Character(*StringOfCharacters++); } Since the ++ is at the end of the variable, the value is returned prior to the increment.
Back to blog

Leave a comment

Please note, comments need to be approved before they are published.