C
CBFalconer
Morris said:Sidney said:Peter said:Sidney Cadot wrote:
[...] /Any/ one-line C program is wrong by the standards
of c.l.c if it is to have a discernable side-effect.
...Unless of course you count something like
int main(){for(;}
which could be argued to be correct, and have a side
effect.
It does? Pardon my ignorance, where?
Its "side effect" (after adding a semicolon to get it to
compile) is to take up resources. If you disagree, you would
have a point.
However, I feel that it takes a weird definition of "side
effect" indeed to define away what happens if you execute
10,000 simultaneous instances of this program on your
computer.
'S not bad; but I like better:
int main(void){return main();}
That will halt with a fault on any implementation known to me.