Portability question
Frank Adams
franka at mmintl.UUCP
Fri Nov 15 09:17:55 AEST 1985
In article <274 at 3comvax.UUCP> mikes at 3comvax.UUCP (Mike Shannon) writes:
> So, how about this:
>#define MONDAY 0
>#define TUESDAY 1
>...
>#define SUNDAY 6
>struct x a[SUNDAY + 1];
Please, add another line:
#define NUM_DAYS 7
and make your declaration
struct x a[NUM_DAYS];
Otherwise, you're absolutely right.
Frank Adams ihpn4!philabs!pwa-b!mmintl!franka
Multimate International 52 Oakland Ave North E. Hartford, CT 06108
More information about the Comp.lang.c
mailing list