Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void name(){
- printf("Rex");
- }
- typedef struct{
- char *_name;
- void (*name)(void);
- }Animal;
- int main()
- {
- Animal dog;
- dog.name = &name;
- dog.name();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement