02-13-2023 10:04 AM
I'm filling out an array with letters (from A to Z). Please run the code and see the behavior. I want my code to work as it's working now. What do you think about what I'm doing? Is it good or bad?
Feel to criticize.
Solved! Go to Solution.
02-13-2023 10:51 AM - edited 02-13-2023 10:52 AM
Bad! Way too much duplicate code and unnecessary complications! You are also indexing outside the valid array later.
02-13-2023 10:59 AM
02-13-2023 11:09 AM
Here's what I would probably do (make sure to learn about the output configuration of the addition. Needs to be U8):
02-13-2023 11:21 AM
Wow. Next time, Thanks Mr. Altenbach. So, now I learned to avoid duplication, I should be using for loop. Thanks!!! You made this very simple. Awesome!!!