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.

Sizin İçin Seçtik  Does switch case work with strings in C#?

Leave a Reply

Your email address will not be published. Required fields are marked *

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.

Sizin İçin Seçtik  Is string allowed in switch case?

Leave a Reply

Your email address will not be published. Required fields are marked *