Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void *func(void) {
- void *p = "teste";
- return p;
- }
- int main(int argc, char *argv[]) {
- void *(*ptr)(void);
- ptr = func;
- printf("%s\n", ptr());
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement