Advertisement
dllbridge

Untitled

May 29th, 2023
764
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.44 KB | None | 0 0
  1.  
  2.  
  3. #include   <stdio.h>
  4.  
  5.  
  6.  
  7.  
  8. int nArr[12];
  9.  
  10.  
  11.  
  12. ////////////////////////////////////////////////////
  13. int main()                                        //
  14. {
  15.    
  16.  
  17.    
  18.     int *p = nArr;
  19.    
  20.     printf("%d\n",  nArr);
  21.     printf("%d\n",  p   ); 
  22.    
  23.     nArr[7] = 17;
  24.    
  25.     for(int i = 0; i < 12; i++) printf("%2d\n",   p[i] );
  26.    
  27. }
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. /*
  51. #include   <stdio.h>
  52.  
  53.  
  54.  
  55.  
  56.  
  57. int foo();
  58.  
  59. int (*f)() = foo;
  60.  
  61.  
  62. ////////////////////////////////////////////////////
  63. int main()                                        //
  64. {
  65.    
  66.  
  67.     printf("%d\n",   f() );
  68.     printf("%d\n", foo   );
  69.  
  70. }
  71.  
  72.  
  73.  
  74.  
  75.  
  76. /////////////////////////////////////////////////////////////
  77. int foo()
  78. {
  79.    
  80. return 7 + 3;  
  81. }
  82.  
  83. */
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93. /*
  94.  
  95. #include   <stdio.h>
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105. ////////////////////////////////////////////////////
  106. int main()                                        //
  107. {
  108.    
  109.     int   n = 77,
  110.          *p = &n;
  111.          
  112.     int  &a =  n;      
  113.    
  114.    
  115.     printf("%d\n", n );
  116.    
  117.     printf(" p = %d\n",  p );
  118.     printf("*p = %d\n", *p );
  119.     printf("&a = %d\n", &a );
  120. }
  121.  
  122.  
  123.  
  124. */
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. /*
  137.  
  138. #include   <stdio.h>
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  __int16   n;
  145.  
  146. float f;
  147.  
  148.  
  149. ////////////////////////////////////////////////////
  150. int main()                                        //
  151. {
  152.  
  153.     n = 32760;
  154.    
  155.     printf("%d\n", sizeof(n) );
  156.    
  157.    
  158.    
  159.     for(int i = 32760; i < 32790; i++ )
  160.     {
  161.         printf("%d\n", n++);
  162.     }
  163. }
  164.  
  165. */
  166.  
  167.  
  168.  
  169.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement