Hi everyone, I'm kind of stuck, is this the correct notation to compare a char to double quotes?

variable == "\""

Assuming variable is of type char, you were close to correct syntax: variable == '\"' . But because you're comparing against a character, you don't need to escape the double quote, so variable == '"' works equally well.

Ah, ok! Thank you so much!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.