Advertisement
Sam-Sampaio

Bla

Mar 30th, 2019
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. void *func(void) {
  4.  
  5.      void *p = "teste";
  6.  
  7.      return p;
  8. }
  9.  
  10. int main(int argc, char *argv[]) {
  11.  
  12.  
  13.     void *(*ptr)(void);
  14.  
  15.     ptr = func;
  16.  
  17.     printf("%s\n", ptr());
  18.      
  19.  
  20.     return 0;
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement