We cannot use a string in switch statement nor can we use
a floating point in switch statement. all we can use in a switch statement is a character and integer. Also we cannot use statements like
i<10 in case statements.This is the reason why switch can't replace IF statements although it allows us to make several choices depending upon the condition.
No, we cannot use a string in a switch statement. We can only use integer constants.