I have seen this before and know it works (at least on an old Borland compiler). Unfortunately, though my memory is good, it's short. Using gcc how do I (can I?) initialize TESTSTRUCT.ssiz e to sizeof(TESTSTRU CT) at compile time?
first data location counter = ??
x = current data location counter - first data location counter;
first data location counter = ??
Code:
typedef struct { int ssize = x; // The size of this structure long lvar; short svar; } TESTSTRUCT;
Comment