Working of the C Preprocessor

前端 未结 7 908
轻奢々
轻奢々 2021-01-19 05:12

How does the following piece of code work, in other words what is the algorithm of the C preprocessor? Does this work on all compilers?

#include 

        
7条回答
  •  灰色年华
    2021-01-19 05:44

    The preprocessor just replaces b with a wherever it finds it in the program and then replaces a with 170 It is just plain textual replacement.

    Works on gcc.

提交回复
热议问题