Advertisement
dllbridge

Untitled

Feb 10th, 2023
859
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.76 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. #include <stdio.h>
  6.  
  7.  
  8. int foo(  );
  9.  
  10.  
  11. int (*x)() = foo;
  12.  
  13. ////////////////////////////////////////////////////////////
  14. int main()
  15. {
  16.  
  17.     printf(" foo = %d\n", foo() );  
  18.     printf(" foo = %d\n",   x() );  
  19.    
  20.     printf("&foo = %d\n",   x   );      
  21. }
  22.  
  23. ////////////////////////////////////////////////////////////
  24. int foo()                                                 //
  25. {
  26.    
  27.    
  28. return 18; 
  29. }
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. /*
  51.  
  52. #include <stdio.h>
  53.  
  54.  
  55. int  n  =  7 ,
  56.      nArr[77];
  57.  
  58. int *p = &n;
  59.  
  60. ////////////////////////////////////////////////////////////
  61. int main()
  62. {
  63.    
  64.     printf(" n = %d\n", n);
  65.     printf(" p = %d\n", p);
  66.     printf("*p = %d\n",*p);    
  67.     printf("&n = %d\n",&n);    
  68. }
  69.  
  70.  
  71.  
  72. */
  73.  
  74.  
  75.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement