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?
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?
It literally replaces all occurrences of the token random
with 2,4
. The pre-processor is just a glorified text-replacement tool.