#include <stdio.h>
#include <conio.h>
void main(void)
{
long lDays;
lDays = 2011L * 365;
printf("\nDays: %ul\n", lDays);
getch();
}
You need both the L(ong) specifier after (either of) 2011 or 365. You also need the %ul printf format specifier.
Gawd! Anybody got some airfreshener? The old decrepit, decayed beast that is TC3.0 is rotten and on the nose. I'd prefer TASM for a month of Sundays over TC!