How it works...
A token-pasting operator is used to define a macro with the name pizzaprice. This macro concatenates the two a and b parameters into a single string. In addition to this, a stringize operator is used to define a macro with the name convertIntoStr, which converts the str parameter into a string. A number of variables are defined, such as smallnormal, mediumnormal, largenormal, and smallextra. These variables represent the price of a small-sized normal pizza, a medium-sized normal pizza, a large-sized normal pizza, and a small-sized pizza with extra cheese, respectively. The normal suffix declares that this is the price of a pizza with a regular amount of cheese. The extra suffix indicates that this variable represents the price ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access