2

What is the difference between define with and without hash mark? Thank you for your help

Halona
  • 1,475
  • 1
  • 15
  • 26

1 Answers1

4

Assuming you refer to the simple C-like preprocessor statements of the form #definenamevalue (and not to define as or define as computed macros), there is no difference at all. The # in this syntax was supposed to be mandatory, but for historical and backward compatibility reasons it was left optional.

Yuri Tsoglin
  • 963
  • 4
  • 7