Objective C nested switch statements - Objective C

What is Objective C nested switch statements?

It is possible to have a switch as part of the statement sequence of an outer switch. Even if the case constants of the inner and outer switch contain common values, no conflicts will arise.

The syntax for a nested switch statement is as follows:


When the above code is compiled and executed, it produces the following result:

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Objective C Topics