C/C++ Code Question - #define - TechRepublic
General discussion
February 25, 2003 at 09:23 AM
frank marchesani

C/C++ Code Question – #define

by frank marchesani . Updated 23 years, 3 months ago

Hi,

A colleague has asked me the following question, and I am stumped. Can anyone help?

Thanks alot,

Frank

Question:

#define XYZ(a, b) (int)(&(((a *)0)->b))

What does this following macro do?

How and why might it be used?

This discussion is locked

All Comments