Howdy all.
I'm working through Kochan's book and I've been stymied by a couple sentences in the chapter 12, on the preprocessor. They are on p.240:
Near as I can figure those are in pretty clear conflict with each other. If there's no such thing as a local define, why should it matter where they're located? I looked at the errata but didn't see anything on this. Can anyone help me out a bit?
Many thanks in advance.
I'm working through Kochan's book and I've been stymied by a couple sentences in the chapter 12, on the preprocessor. They are on p.240:
"There is no such thing as a local define. After a name has been defined, it can subsequently be used anywhere in the program. Most programmers place their defines inside header files so they can be used by more than one source file."
Near as I can figure those are in pretty clear conflict with each other. If there's no such thing as a local define, why should it matter where they're located? I looked at the errata but didn't see anything on this. Can anyone help me out a bit?
Many thanks in advance.