Hacker News new | ask | show | jobs
by whatshisface 1820 days ago
Can you jump to a computed GOTO in C? I guess you can if you cast to a function pointer...
2 comments

I’m no C language lawyer, but it’s hard to imagine that sort of voodoo won’t trigger some kind of undefined behaviour that’ll cause the optimizer to erase your program at best and summon nasal demons at worst.
Yes, but it’s a GCC extension, not standard.