Advertisement
dllbridge

Untitled

Feb 6th, 2025 (edited)
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.45 KB | None | 0 0
  1.  
  2.  
  3. #include     <stdio.h>
  4.  
  5.  char SONY[30] = "TDK, BASF, DENON";
  6.  int nArr[88];
  7.  double f = 21.443;
  8.  int n6 = 87;
  9. //////////////////////////////////////////////////////////////
  10. int main()
  11. {
  12.    
  13.    
  14.      printf("%s   \n", SONY   );
  15.      
  16.      for(int i = 0; i < 16; i++)
  17.      {
  18.          
  19.          printf("SONY[%2d] = %c = %d  \n", i, SONY[i], SONY[i]);
  20.      }
  21.    
  22.    
  23. }
  24.  
  25.  
  26. /*
  27. #include     <stdio.h>
  28.  
  29.  char sz[99] = "SONY Pictures";
  30.  
  31.  double f = 21.443;
  32.  
  33. //////////////////////////////////////////////////////////////
  34. int main()
  35. {
  36.    
  37.     printf("%s   \n", sz   );
  38.     printf("%d   \n", sz[5]);  
  39.     printf("%c   \n", sz[5]);
  40.     printf("%f   \n",   f  );      
  41. }
  42.  
  43. */
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. /*
  54. #include     <stdio.h>
  55.  
  56.  char c = 'W';
  57.  
  58. //////////////////////////////////////////////////////////////
  59. int main()
  60. {
  61.    
  62.     printf("%s   \n", "SONY");
  63.     printf("%d   \n",    'A');    
  64.     printf("%d   \n",     c );  
  65.     printf("%c   \n",    72 );      
  66. }
  67.  
  68.  
  69. */
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83. /*
  84. #include     <stdio.h>
  85.  
  86.  char sz[99] = " nArr[%d] ===  ==  %5d \n";
  87.  
  88. //////////////////////////////////////////////////////////////
  89. int main()
  90. {
  91.    
  92.     int nArr[10000] = {11};// = {4444, 125, 12, 199, 14, 15};
  93.    
  94.     int i = 0;
  95.  
  96.    nArr[0] = nArr[0] + 11;
  97.    nArr[7] = 1555444111;
  98.  
  99. L_01:  
  100.         printf(sz, i, nArr[i]);
  101.        
  102.         i ++ ;
  103.        
  104.         if(i < 10) goto L_01;
  105. }
  106.  
  107. */
  108.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement