Advertisement
dllbridge

Untitled

Feb 25th, 2025
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.26 KB | None | 0 0
  1.                                                              E-mail:    dllbridge@gmail.com                
  2.  
  3. #include <stdio.h>
  4.  
  5.  
  6.  
  7. /////////////////////////////////////////////////
  8. int main()                                        
  9. {  
  10.    
  11.  
  12.     int nArr[99] = {2, 1, 34}; 
  13.    
  14.     printf("Size of int = %d\n", sizeof(int));
  15.    
  16.     for(int i = 0; i < 99; i++)
  17.     {
  18.            
  19.         printf("nArr[%2d] =%10d, His address = %d \n", i, nArr[i], &nArr[i]);    
  20.     }
  21.    
  22. }
  23.  
  24.  
  25.  
  26.  
  27.  
  28. /*
  29. #include <stdio.h>
  30.  
  31.  
  32.  
  33. /////////////////////////////////////////////////
  34. int main()                                        
  35. {  
  36.     int n1 =  11;
  37.     int n2 =  22,
  38.         n3 = 333;
  39.  
  40.     int nArr[99] = {2, 1, 34}; 
  41.    
  42.     for(int i = 0; i < 99; i++)
  43.     {
  44.            
  45.         printf("nArr[%2d] =%10d\n", i, nArr[i]);    
  46.     }
  47.    
  48. }
  49.  
  50. */
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73. /*
  74.  
  75. #include <stdio.h>
  76.  
  77. /////////////////////////////////////////////////
  78. void mult(int n)
  79. {
  80.      
  81.     for(int m = 1; m < 12; m++)
  82.     {
  83.         printf("%d * %3d = %3d\n", n, m, m * n);
  84.     }    
  85.    
  86.     printf(" \n");
  87. }
  88.  
  89.  
  90.  
  91. /////////////////////////////////////////////////
  92. int main()                                        
  93. {  
  94.    
  95.    int n = 5;
  96.    
  97.    mult(n  );
  98.    mult(n+1);
  99. }
  100.  
  101.  
  102.  
  103. */
  104.  
  105.  
  106.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement