Advertisement
dllbridge

Untitled

Dec 23rd, 2024
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.67 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3.  
  4. /////////////////////////
  5. enum Enu_month
  6. {
  7.      
  8.       JANUARY = 1,
  9.      FEBRUARY,
  10.         MARCH,
  11. };
  12.  
  13.  
  14. int   nSumma;
  15.  
  16. char months[14][17] = {        " ",
  17.                          "January",
  18.                         "February",
  19.                            "March"
  20.                      };
  21.  
  22. /////////////////////////////////////////////////////////////////
  23. int main()
  24. {
  25.    
  26.                          printf("nSumma = %d\n", nSumma);
  27.           nSumma  = 17;  printf("nSumma = %d\n", nSumma);
  28.          
  29.          
  30.     Enu_month E1 = (Enu_month)2;      
  31.          
  32. //  printf("%s\n", months[E1]);      
  33.    
  34.     printf("c = %c\n", months[3][0]);  
  35.    
  36.    
  37. }
  38.  
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement