Your Turn: Check Every Character
Now that your project can access the length of a string, it can use that number to limit how many characters the project checks in a loop. This makes it possible to access every character safely, without accidentally using an index value that’s too large.
This project displays both the individual characters in the string along with their ASCII codes.
Example project: char_access_your_turn
- Enter and name char_access_your_turn.
- Click the Download button.
- Check the results in the serial terminal.
- Verify that it displays all the characters in the s string along with their ASCII codes.