1 | int main() { |
---|---|
2 | typedef void (*FooCallback)(); |
3 | FooCallback foo_callback = (FooCallback)0; |
4 | foo_callback(); // Crash at zero! |
5 | return 0; |
6 | } |
7 |
1 | int main() { |
---|---|
2 | typedef void (*FooCallback)(); |
3 | FooCallback foo_callback = (FooCallback)0; |
4 | foo_callback(); // Crash at zero! |
5 | return 0; |
6 | } |
7 |