← Back to Users
Jason+Foo's activity in the archive.
#include <stdio.h> void (*function[2])(int); void print(int i){ printf("%d\n", i); function[i / 100](i + 1); /* put printf here instead to count down */} void nop(int i){} int main(void){ function[0] = print; function[1] = nop; print(1); return 0;}
#include <stdio.h>
/* put printf here instead to count down */
void (*function[2])(int);
void print(int i)
{
printf("%d\n", i);
function[i / 100](i + 1);
}
void nop(int i)
{
}
int main(void)
{
function[0] = print;
function[1] = nop;
print(1);
return 0;
}