printf("How are you??-I am fine")-->printf("How are you~I am fine")printf("How are you???-I am fine")-->printf("How are you?~I am fine")// Will the next line be executed??????/a++;-->// Will the next line be executed???? a++;/??/*Acomment*??//-->/* A comment */
Digraphs (from C99) handled in tokenization (step 4.)
<: --> [
:> --> ]
<% --> {
%> --> }
%: --> #
Include directive handling
Search filename in the standard compiler include path
Search filename in the current source directory
Extend the include path from command line
The preprocessor replaces the line with the text of the filename.
#if DEBUG_LEVEL > 2
fprint("program was here %s %d\n",__FILE__,__LINE__);#endif
1
2
3
4
5
#ifdef __unix__ /* __unix__ is usually defined by compilers for Unix */
# include <unistd.h>
#elif defined _WIN32 /* _Win32 is usually defined for 32/64 bit Windows */
# include <windows.h>
#endif