Shortest program that results in infinite loop by programming language: Python: while 1:0 C: main(){main();} Lisp: (loop) Javascript: for(;;); Java: class A{public static void main(String[]a){for(;;);}}
Saved to
Programming Languages
Lex Fridman
over 3 years ago