Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef first_case
- printf("typed first_casen");
- #endif
- #include <stdio.h>
- int main()
- {
- // your code goes here
- int k=0;
- scanf("%d",&k);
- switch(k)
- {
- case 1 :
- printf("case 1n");
- #define first_case
- break;
- case 2 :
- #define second_case
- break;
- case 3 :
- #define third_case
- break;
- case 4 :
- #define fourth_case
- break;
- }
- #ifdef first_case
- printf("typed first_casen");
- #endif
- #ifdef second_case
- printf("typed second_casen");
- #endif
- #ifdef third_case
- printf("typed third_casen");
- #endif
- #ifdef fourth_case
- printf("typed fourth_casen");
- #endif
- }
Add Comment
Please, Sign In to add comment