Advertisement
dllbridge

Untitled

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