educative.io

Exercise on strings question

I am checking if there is a space in the province char that I am given and I tried
if(province[i] == ’ ') but it just shows a red X when I run it. I am not sure how else I am supposed to check for a space unless I check for the ascii char to be 32. I wanted to ask if this is supposed to error and if so how else can I check for a space?

Hi @Alyssa_Yee

I am unable to find the lesson you have mentioned, can you please share the lesson’s link?

Thank you.