Can anyone help me in the following question please?
Define a macro which has the following prototype:
F(A, B, C, D)After using this macro as
F(name, float, a, b), you should be able to use the variablesname.aandname.b. Make sure that your implementation is reusable, i.e you can useFmore than once in the same block.Also, extend it so that a predefined prefix is added to the variable. That is, if the predefined prefix is
pt, then after using this macro, you should be able to use
pt_name.a, andpt_name.b.
Asked by Citrix
Here:
That should work.