Comparing strings

The two variables that I’m comparing are defined as ‘char’. I’m not sure if this causes a problem?