Advertisement
dllbridge

Untitled

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