#C# , (削除) 38 (削除ここまで)(削除) 37 (削除ここまで) 36 bytes
C# , (削除) 38 (削除ここまで)(削除) 37 (削除ここまで) 36 bytes
class B{static int Main(){for(;;);}}
For loop with no stopping condition.
The return of main should be an int, but since it'll never reach the end this should compile. (Tested in VS 2015 and 2013, also works in Ideone). Thanks Geobits and MichaelS.
A shorter version, 35 bytes, can be achieved, but prints Process is terminated due to StackOverflowException which I believe violates the third point of not printing anything to stderr. Credit to MichaelB
class B{static int Main()=>Main();}
#C# , (削除) 38 (削除ここまで)(削除) 37 (削除ここまで) 36 bytes
class B{static int Main(){for(;;);}}
For loop with no stopping condition.
The return of main should be an int, but since it'll never reach the end this should compile. (Tested in VS 2015 and 2013, also works in Ideone). Thanks Geobits and MichaelS.
A shorter version, 35 bytes, can be achieved, but prints Process is terminated due to StackOverflowException which I believe violates the third point of not printing anything to stderr. Credit to MichaelB
class B{static int Main()=>Main();}
C# , (削除) 38 (削除ここまで)(削除) 37 (削除ここまで) 36 bytes
class B{static int Main(){for(;;);}}
For loop with no stopping condition.
The return of main should be an int, but since it'll never reach the end this should compile. (Tested in VS 2015 and 2013, also works in Ideone). Thanks Geobits and MichaelS.
A shorter version, 35 bytes, can be achieved, but prints Process is terminated due to StackOverflowException which I believe violates the third point of not printing anything to stderr. Credit to MichaelB
class B{static int Main()=>Main();}
#C#, (削除) 38 (削除ここまで) (削除) 37 (削除ここまで) 36 bytes
class B{static int Main(){for(;;);}}
For loop with no stopping condition.
The return of main should be an int, but since it'll never reach the end this should compile. (Tested in VS 2015 and 2013, also works in Ideone). Thanks GeobitsGeobits and MichaelSMichaelS.
A shorter version, 35 bytes, can be achieved, but prints Process is terminated due to StackOverflowException which I believe violates the third point of not printing anything to stderr. Credit to MichaelB
class B{static int Main()=>Main();}
#C#, (削除) 38 (削除ここまで) (削除) 37 (削除ここまで) 36 bytes
class B{static int Main(){for(;;);}}
For loop with no stopping condition.
The return of main should be an int, but since it'll never reach the end this should compile. (Tested in VS 2015 and 2013, also works in Ideone). Thanks Geobits and MichaelS.
A shorter version, 35 bytes, can be achieved, but prints Process is terminated due to StackOverflowException which I believe violates the third point of not printing anything to stderr. Credit to MichaelB
class B{static int Main()=>Main();}
#C#, (削除) 38 (削除ここまで) (削除) 37 (削除ここまで) 36 bytes
class B{static int Main(){for(;;);}}
class B{static int Main(){for(;;);}}
For loop with no stopping condition.
The return of main should be an int, but since it'll never reach the end this should compile. (Tested in VS 2015 and 2013, also works in Ideone). Thanks Geobits and MichaelS.