Advertisement
dllbridge

Untitled

Oct 27th, 2023
628
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.76 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. #include   <stdio.h>
  6.  
  7.  
  8.  
  9.  
  10.  
  11. char c = 'T',
  12.      szArr[19] = "SONY_Pictures";
  13.  
  14.  
  15. ////////////////////////////////////////////////////
  16. int main()                                        //
  17. {
  18.  
  19.     printf("c  = %c\n",      c);    szArr[9] = '0';
  20.     printf("sz = %s\n",  szArr);           
  21. }
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48. /*
  49. #include   <stdio.h>
  50.  
  51.  
  52.  
  53.  
  54. void foo(int jklhjklhjkhklh);
  55.  
  56. char c;
  57.  
  58.  
  59. ////////////////////////////////////////////////////
  60. int main()                                        //
  61. {
  62.     int n = 11;
  63.    
  64.     foo(n);
  65.    
  66.     printf("address n = %d\n",  &n);
  67.     printf("n = %d\n",  n);
  68.    
  69.        
  70. }
  71.  
  72.  
  73.  
  74.  
  75. ////////////////////////////////////////////////////
  76. void foo(int n)
  77. {
  78.    
  79.     n -= 2;
  80.  
  81.     printf("Address n = %d\n",  &n);   
  82.     printf("n from foo = %d\n",  n);
  83.     printf("Size of char = %d\n",  sizeof(c) );
  84. }
  85.  
  86. */
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95. /*#include   <stdio.h>
  96.  
  97.  
  98.  
  99.  
  100. int foo(int);
  101.  
  102.  
  103. int n = 777;
  104.  
  105. ////////////////////////////////////////////////////
  106. int main()                                        //
  107. {
  108.     int n = 11;
  109.    
  110.     int nRes = foo(17);
  111.    
  112.     printf("n   = %3d\n",  ::n);
  113.     printf("foo = %3d\n", nRes);
  114.     printf("foo = %3d\n", foo(10) );   
  115.        
  116. }
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128. ////////////////////////////////////////////////////
  129. int foo(int n)
  130. {
  131.     n = n - 2;
  132.    
  133. return n;  
  134. }
  135. */
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145. /*
  146.  
  147. #include   <stdio.h>
  148.  
  149.  
  150.  
  151.  
  152. int foo();
  153.  
  154.  
  155. int n = 777;
  156.  
  157. ////////////////////////////////////////////////////
  158. int main()                                        //
  159. {
  160.     int n = 11;
  161.    
  162.     int nRes = foo();
  163.    
  164.     printf("n   = %d\n",  ::n);
  165.     printf("foo = %d\n", nRes);
  166.     printf("foo = %d\n", foo() );  
  167.        
  168. }
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180. ////////////////////////////////////////////////////
  181. int foo()
  182. {
  183.    
  184. return 88; 
  185. }
  186.  
  187. */
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement