Pages

August 21, 2010

Review OOP344

extern "C"{
include"hello.h"
}


The pre-processor substitutes each macro citation with the replacement text. The pre-processor recognizes three types of macros:
  • object-like macros
  • function-like macros
  • predefined macros
Efficiency and Flexibility

Function-like macros provide efficient and flexible solutions. They avoid the overhead of function calls and do not impose type constraints on the parameters in the macro definition.