Advertisement
dllbridge

Untitled

Dec 30th, 2024 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.79 KB | None | 0 0
  1.  
  2. #include <stdio.h>        
  3.  
  4.  
  5.  
  6.  
  7. //////////////////////////////////////////////////////
  8. int main()                                          //
  9. {
  10.    
  11.     char c1 = 'A',
  12.          c2 = '!',
  13.          c3 = c1 + c2;
  14.          
  15.          printf("c3 = %c\n", c3);
  16.    
  17. }
  18.  
  19.  
  20. ///       ......................
  21. #include <stdio.h>          //  Ver: 01
  22.  
  23.  
  24.  
  25. enum Day {Monday = 1, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday};
  26.  
  27.  
  28. Day yesterday,
  29.         today,
  30.      tomorrow;
  31.  
  32.  
  33. //////////////////////////////////////////////////////
  34. int main()                                          //
  35. {
  36.    
  37.     today = Tuesday;
  38.  
  39.     printf("yesterday = %d\n", yesterday);    
  40.     printf("today     = %d\n", today    );
  41.     printf("tomorrow  = %d\n", tomorrow );  
  42.  
  43. }
  44.  
  45.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement