Added book examples
This commit is contained in:
15
C20/formatting_directive_example.c
Normal file
15
C20/formatting_directive_example.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
#include <conio.h>
|
||||
|
||||
#define DEBUG_ON 1
|
||||
|
||||
int main(void)
|
||||
{
|
||||
#ifdef DEBUG_ON
|
||||
printf("Debug mode - about to do something\n");
|
||||
#else
|
||||
print("Running in standard mode");
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user