int StrPrint(char *str)
main()
char str[24]="pointing to a function.";
int (*ptr)(char *str);
ptr=StrPrint;
if (!(*ptr)(str))
printf("Done!\n");
return 0;
}
int StrPrint (char *str)
{
printf("&s\n", str);
return 0;
}
/* I don't really know why there are pointers declared inside of a function,
don't understand int (*ptr)(char *str); and the if statement. I mean this book just jumped into declaring pointers in a function without really explaining them. I was like you know understanding pointer a little bit, moving up in the address declaring and all that, but that just blew me off. Please any help will be greatlly appreciated */