Advertisement
dllbridge

Untitled

Jul 28th, 2024
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.62 KB | None | 0 0
  1.  
  2. #include  <stdio.h>
  3.  
  4. void foo(int n);
  5.  
  6.  
  7. ////////////////////////////////////////////////////
  8. int main()                                        //
  9. {
  10.        
  11.        
  12.     int n = 0;    
  13.        
  14.     foo(n);
  15.  
  16.  
  17.     printf("n  = %d   \n",  n);        
  18. }
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. ////////////////////////////////////////////////////
  26. void foo(int n)
  27. {
  28.        
  29.     n = n + 77;    
  30.        
  31.        
  32. }
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57. /*
  58.  
  59. #include  <stdio.h>
  60.  
  61. int foo();
  62.  
  63. int add(int n1, int n2);
  64.  
  65.  
  66. void f_2(const char *p);
  67.  
  68.  
  69. ////////////////////////////////////////////////////
  70. int main()                                        //
  71. {
  72.        
  73.        
  74.     int n = 44;    
  75.        
  76.     printf("SONY   \n"       );
  77.     printf("77     \n"       );    
  78.     printf("%d     \n", 55   );    
  79.     printf("%d     \n",  n   );  n = foo();
  80.     printf("n = %d \n",  n   );  n = add(11, 12);
  81.     printf("Summa = %d \n", n);    
  82.    
  83.     f_2("SONY_Pictures");  
  84.    
  85.     scanf("%d", &n);  
  86. }
  87.  
  88. //////////////////////////////////////////////////////
  89. void f_2(const char *p)
  90. {
  91.        
  92.      printf("%s\n", p);      
  93.        
  94. }
  95.  
  96.  
  97.  
  98. ////////////////////////////////////////////////////
  99. int add(int n1, int n2)                           //  
  100. {
  101.    
  102.     int n3 = n1 + n2;    
  103.  
  104. return n3;        
  105. }
  106.  
  107.  
  108. ////////////////////////////////////////////////////
  109. int foo()
  110. {
  111.        
  112.  return 7711;      
  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.  
  142. /*
  143.  
  144. #include  <stdio.h>
  145.  
  146.  
  147. int  n = 123456789;
  148.  
  149.     printf("Hello, World !");
  150.     printf("\nn = %d \n", n);    
  151.     getchar();
  152.  
  153.  
  154. */
  155.  
  156.  
  157.  
  158.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement