If chr is a character variable, which of the following if statements is written correctly? – Q/A (Question and Answer)

Question
If chr is a character variable, which of the following if statements is written correctly? – Q/A (Question and Answer)

Test Answer

Answer:

if (chr == ‘a’)

Recource Programming Fundamental Quiz 1-4

Unlock this answer Join StudyHippo to unlock
unlock
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New