int main() { static int n=1; printf("%d ", n) && (n++<100) && main(); return 0; }
printf(...)
x && y & z
x
y
z
main()
int n=1; // in case of non-pod "initializable" types this // isn't equivalent with declaration inside a function // even if we overlook the difference in accessiblity int main() { if (printf("%d ", n)) { if (n++ < 100) { main(); } } return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)