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.

Syntax:
The syntax for a nested switch statement is as follows:

Example:

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

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

Objective C Topics