> struct dummy Dummy = { offsetof(struct dummy,f), > 2.0 }; Also try: char SmallArray [ offsetof(struct dummy, f) ]; ... struct something { int i : offsetof (struct dummy, f); }; ... switch (i) { case offsetof (struct dummy, f): break; } ... --- Shankar Unni.