Advertisement
fouzimedfouni

#ifdef and #endif

Jan 29th, 2015
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #define Fouzi /* without using this derective (Macro) the statement (printf) between (#ifdef Fouzi) and (#endif) will not excecute */
  4.              
  5.  
  6. main()
  7. {
  8.      
  9.      
  10. #ifdef Fouzi                  // the starting of the derective
  11. printf(" HI FOUZI");      // the statement
  12. #endif                         // the end of the directive
  13.  
  14.  
  15.  
  16.     fflush(stdin);
  17.     getchar();
  18.    
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement