Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void affirm(void) {
- printf("It's true.\n");
- }
- void state(void fn(void)) {
- printf("You can pass function pointers with a simple syntax.\n");
- fn();
- }
- int main(void) {
- state(affirm);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement