Switch case & strings

Nope, this is not possible.

switch() case constructs only work for ordinal/integral types and strings/char-arrays are not.

But this actually is not a Spark question but a standard C thing.

3 Likes