C Language Q & A #11
What is happening with the statement #define ASCII_X ‘X’ ? It doesn’t seem to behave like a variable. Is there a special prefix to identify a string variable in C ?
- Statements beginning with the pound symbol (#) are directives for the preprocessor program which performs character substitution only. This directive says that whenever the preprocessor encounters the characters ASCII_X in your program, it should replace those characters with the characters ‘X’. This gives you a way to define constant information.