Advertisement
dllbridge

Untitled

May 2nd, 2023
1,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.57 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5. #include   <stdio.h>
  6.  
  7.  
  8.  
  9.  
  10. char szArr[14][19] = {"---", "Jan", "Feb", "Mar", "Apr"};
  11.  
  12.  
  13. char *pArr[14];
  14.  
  15.  
  16.  
  17.  
  18.      
  19.  
  20.  
  21. ////////////////////////////////////////////////////
  22. int main()                                        //
  23. {
  24.    
  25.     pArr[1] = szArr[1];
  26.     pArr[2] = szArr[2];
  27.     pArr[3] = szArr[3];
  28.     pArr[4] = szArr[4];    
  29.  
  30.     for(int i = 4; i > 0; i--)
  31.     {
  32.        
  33.         printf("%d = %s\n", i, szArr[i]);
  34.        
  35.     }  
  36.    
  37.     printf("- - - - - - - \n");
  38.    
  39.     for(int i = 1; i < 5; i++)
  40.     {
  41.        
  42.         printf("%d = %s\n", i, pArr[i]);
  43.        
  44.     }  
  45. }
  46.  
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement