What do macros with multiple values separated by comma actually mean?

Viewed 126

While I was attempting a technical exam as part of a recruitment process I came across a question which has macros as shown below:

#define random 2,4

what does this mean? How can I define two values with a comma for a single macro?

1 Answers

It literally replaces all occurrences of the token random with 2,4. The pre-processor is just a glorified text-replacement tool.

Related