/*
 * The very basics of function pointers.
 *
 * Author: Zach Tomaszewski
 */
#include <stdio.h>

void hi(char* name) {
  printf("Hello, %s\n", name);
}

int main() {
  void (*greet)(char*) = hi;   //or: = &hi;
  greet("World");              //or: (*greet)("World");
  
  return 0;
}

