The '#' may be used within a macro (#define) definition, this will convert the macro parameter into a string constant that is stored in Code space. Note that this operator may be used only in a macro that has a specified argument or parameter list.


Here is an example for Keil C51. User should get similar result on ARM Cortex M devices with GNU ARM toolchain.


  • 8-bit MCUs
  • Knowledge Base Articles