#include <stdio.h>
#include <stdlib.h>

int func(void);

int
main(int argc, char *argv[])
{
    int (*func_ptr)(void);

    func_ptr = func;
    printf("func() addr:   %p\n", func);
    printf("func_ptr addr: %p\n", func_ptr);

    printf("\ncalling func() with function pointer func_ptr\n");
    func_ptr();
    exit(EXIT_SUCCESS);
}

int
func(void)
{
    printf("you called func.\n");
    return 0;
}
