Advertisement
dllbridge

Untitled

Dec 5th, 2021
994
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.79 KB | None | 0 0
  1.  
  2. #include    <stdio.h>
  3. #include   <string.h>
  4.  
  5.  
  6.  
  7. int a;
  8. int b;
  9.  
  10.  
  11. int arr[600];
  12.  
  13.  
  14. char sz1[111] = "SONY";
  15. char sz2[111] = "Picturesjd;shjd;lsgj'sjs'dkjh;rkjhg;jresj";
  16.  
  17. ////////////////////////////////////////////////////
  18. int main()                                        //
  19. {
  20.    
  21. //  strcat(sz1, sz2);
  22.    
  23.     printf(sz1);
  24.    
  25.     sz2[20] = 0;
  26.    
  27.     int n = strlen(sz2);
  28.    
  29.     printf("\n n = %4d \n", n);
  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.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. /*
  67. #include   <stdio.h>
  68.  
  69.  
  70.  
  71.  
  72.  
  73. int arr[100] = {1, 7, 12, 44, 32, 78, 102, 256, 512, 1024, 228, 777};
  74.  
  75. int a = 6,
  76.     b = 3,
  77.     c = 55,
  78.     d = 2,
  79.     e = 9,
  80.     f = 4;                                          //  24 bytes
  81.  
  82. //int y[6] = {5, 20497, 12, 44, 32, 78};                                                      //  24 bytes
  83.  
  84. ////////////////////////////////////////////////////
  85. int main()                                        //
  86. {
  87.    
  88. int y[600];
  89.    
  90.    
  91.     //for(int i = 0; i < 600; i = i + 1)
  92.    
  93.     int i = 0;
  94.    
  95.     do
  96.     {
  97.        
  98.         printf("y[%2d] = %4d \n", i, y[i]);
  99.        
  100.         i++;
  101.    
  102.     }
  103.     while (i < 600);
  104. }
  105.  
  106.  
  107. */
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. /*
  131. #include   <stdio.h>
  132.  
  133.  
  134.  
  135.  
  136.  
  137. char sz[100] = "I'm counting to 8";
  138.  
  139.  
  140.  
  141.  
  142. ////////////////////////////////////////////////////
  143. int main()                                        //
  144. {
  145.     for(int i = 17; i > 0; i -= 2)
  146.     {
  147.         sz[i] = 0;
  148.    
  149.         printf("%s \n", sz);
  150.     }
  151. }
  152.  
  153.  
  154. */
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183. /*
  184.  
  185. #include   <stdio.h>
  186.  
  187.  
  188.  
  189. //   I'm counting to 8
  190.  
  191.  
  192.  
  193.  
  194.  
  195. ////////////////////////////////////////////////////
  196. int main()                                        //
  197. {
  198.  
  199.     for(int i = 0; i <= 100000000; i++)
  200.     {
  201.        
  202.        if(i % 10000 == 0) printf("I'm counting to %d  \n", i);
  203.     }
  204.  
  205. }
  206.  
  207.  
  208.  
  209. */
  210.  
  211.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement