2

How is a switch-case statement compiled/implemented in C.

Is it a linear lookup? Is it a hash table? Some other option?

If the specific compiler changes the answer, assume recent gcc version with no build flags.

In my situation the data is more that 50 sequential enums, so dense data.

OrangePeel52
  • 121
  • 4

0 Answers0