Switch Case In C In a switch statement, we pass a variable holding a value in the statement. If the condition is matching to the value, the code under the condition is executed . The condition is represented by a keyword case, followed by the value which can be a character or an integer.
Can we use condition in switch-case?
Switch Case In C In a switch statement, we pass a variable holding a value in the statement. If the condition is matching to the value, the code under the condition is executed . The condition is represented by a keyword case, followed by the value which can be a character or an integer.