0

In the code below (photo), I am trying to index into the two different arrays, one with capital letters and one with lowercase letters. When I make this program, I keep getting the following error about the arrays: Use of undeclared identifier 'A'. I thought that by declaring the arrays as type char, each element in those arrays would be recognized as a char... Any thoughts on how to fix this? Thanks enter image description here

1 Answer 1

0

Each char must be enclosed in single quotes ('A'), otherwise compiler thinks it is a variable (aka "identifier").

1
  • Oooh, right! Thank you so much! Commented Nov 10, 2022 at 11:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .