From: mage AT eskimo DOT com (Joel Thornton) Subject: Problem with sizeof To: djgpp AT sun DOT soe DOT clarkson DOT edu (DJGPP) Date: Sat, 2 Jul 1994 17:23:07 -0700 (PDT) I am having a problem with sizeof ... Here is what I have : /* day_mon3.c -- initializes 10 out of 12 elements */ #include int days[] = {31,28,31,30,31,30,31,31,30,31,30,31}; int main(void) { int index; extern int days[]; /* optional declaration */ Auto-saving... done for (index = 0; index < sizeof days / sizeof (int); index++) printf("Month %d has %d days.\n", index + 1, days[index]); return 0; } Here is the output I get upon compilation: day_mon3.c: In function `main': day_mon3.c:9: sizeof applied to an incomplete type ?? What to do ?? This code compiles well under Microsoft C... help! - Mm