123456789101112131415161718 |
- #include <stdio.h>
- void func0() {
- puts("this is the function func0().");
- }
- void func1() {
- puts("this is the function func1().");
- }
- int main() {
- void (*funcTable[2])(void) = {func0, func1};
- for (int i = 0; i < 2; ++i) {
- funcTable[i]();
- }
- return 0;
- }
|