And the output looks like, the trick is to define TD and TR as incrementors of the row and column counters and '_' and 'O' as statements which set the relevant place in the array. This is all an overshare, I get that, I'm just excited to find the code.

/*<!-- */char *s="/*<!-- */char *s=%c%s%c;char *t=%c%s%c;%c#define O (x[a][b++]=1),0%c#define _ (x[a][b++]=0),0%c#define TD 5; 4%c#define TR a++; b=1;%c#define Tr a++;%c#define N(x) f=x+1;%c#define p printf%cint main() { int x[99][99],a=1,b=1,i,j,k,l,n,f; for(i=0; i<99; i++) for(j=0; j<99; j++) x[i][j]=0; p(s,34,s,34,34,t,34,10,10,10,10,10,10,10,10);/*--%c <HTML><TABLE border=0><TR><TD */5>";char *t=" for(i=1; i<a; (i!=(a-1))?p(%c%%cTR /*%%c%%cTD*/5%%c%cn%c,60,62,60,62):i,i++) for(j=1; j<b; j++) { n=0; for(k=-1; k<2; k++) for(l=-1; l<2; l++) if(k||l) n+=x[i+k][j+l]; p(%c%%c%c,(n==3)?'O':((n==2)?(x[i][j]?'O':'_'):'_')); j!=(b-1)?p(%c%%cTD%%c%c,60,62):j; } p(%c%%cTr N(%%d)/*%%c%%c/TABLE%%c%%cA HREF=t%%d.c%%cn%%c/A%%c%%c/HTML%%c%%cTD */%cn%c, 60,f,62,60,62,60,f,62,60,62,60,62,60); p(t,34,92,34,34,34,34,34,34,92,34,10); } /* > */%c";
#define O (x[a][b++]=1),0
#define _ (x[a][b++]=0),0
#define TD 5; 4
#define TR a++; b=1;
#define Tr a++;
#define N(x) f=x+1;
#define p printf
int main() { int x[99][99],a=1,b=1,i,j,k,l,n,f; for(i=0; i<99; i++) for(j=0; j<99; j++) x[i][j]=0; p(s,34,s,34,34,t,34,10,10,10,10,10,10,10,10);/*--> <HTML><TABLE border=0><TR><TD */5>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<T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>_<TD>_<TD>_<TR /*><TD */5>
_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TR /*><TD */5>
_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<TD>_<Tr N(2)
/*></TABLE><A HREF=t2.c>n</A><BR><TD */
for(i=1; i<a; (i!=(a-1))?p("%cTR /*%c%cTD*/5%c\n",60,62,60,62):i,i++) for(j=1; j<b; j++) { n=0; for(k=-1; k<2; k++) for(l=-1; l<2; l++) if(k||l) n+=x[i+k][j+l]; p("%c",(n==3)?'O':((n==2)?(x[i][j]?'O':'_'):'_')); j!=(b-1)?p("%cTD%c",60,62):j; } p("%cTr N(%d)/*%c%c/TABLE%c%cA HREF=t%d.c%cn%c/A%c%c/HTML%c%cTD */\n", 60,f,62,60,62,60,f,62,60,62,60,62,60); p(t,34,92,34,34,34,34,34,34,92,34,10); } /* > */