Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- //////////////////////////////////////////////////////
- int main() //
- {
- char c1 = 'A',
- c2 = '!',
- c3 = c1 + c2;
- printf("c3 = %c\n", c3);
- }
- /// ......................
- #include <stdio.h> // Ver: 01
- enum Day {Monday = 1, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday};
- Day yesterday,
- today,
- tomorrow;
- //////////////////////////////////////////////////////
- int main() //
- {
- today = Tuesday;
- printf("yesterday = %d\n", yesterday);
- printf("today = %d\n", today );
- printf("tomorrow = %d\n", tomorrow );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement