Interview Questions

I have got this tricky preprocessing I want to do and I cant figure out a way to do it.

C Interview Questions and Answers


(Continued from previous question...)

I have got this tricky preprocessing I want to do and I cant figure out a way to do it.

C's preprocessor is not intended as a general-purpose tool. (Note also that it is not guaranteed to be available as a separate program.) Rather than forcing it to do something inappropriate, you might want to write your own little special-purpose preprocessing tool, instead. You can easily get a utility like make(1) to run it for you automatically.
If you are trying to preprocess something other than C, consider using a general-purpose preprocessor. (One older one available on most Unix systems is m4.)

(Continued on next question...)

Other Interview Questions