Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- const char* seibuonoannulla = "Pappo, sei buono a nulla!";
- const char* sonopuggile = "Sono puggile! *PUNCH*";
- void mamma(void) {
- printf("%s\n", seibuonoannulla);
- }
- void pappo(void) {
- printf("%s\n", sonopuggile);
- }
- void (*funcs[2])(void) = {mamma, pappo};
- void (*f(int x)) (void) {
- return funcs[x];
- }
- int main(int args, char* argv[]) {
- int i;
- for (i = 0; i < 2; i++) {
- f(i)();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement