#include <stdio.h>
typedef void (*ptr)(void);
void fun (void)
{
printf("\n In fun\n");
}
int main()
{
ptr funptr1, funptr2, funptr3;
funptr1 = fun;
funptr2 = *fun;
funptr3 = &fun;
funptr1();
funptr2();
funptr3();
return 0;
}
====================================================
OUTPUT :=>
$ ./a.exe
In fun
In fun
In fun
The address stored in funptr1, funptr2 and funptr3 is same why ??