What are some cool programs that can be programmed in C with only a few lines of code?
Yeah, I know, "cool" is a very vague word.
What are some cool programs that can be programmed in C with only a few lines of code?
Yeah, I know, "cool" is a very vague word.
not very original, but i consider my sig program cool for 4 lines
hello, internet!
You can crash XP with I think four lines of code. You can decoded DVDs with 7. All sorts of fun things...
[edit]
Slight correction, it's seven lines of Perl. In C it's like 21 lines.
[/code]
Quzah.
Last edited by quzah; 12-19-2002 at 05:40 PM.
Hope is the first step on the road to disappointment.
With as few lines as possible? Well, theoretically you can write any program in just a few lines,
though it is very impractical and unreadable...
Code:#include <stdio.h> int main(){ int X = 32; printf("Hello world!"); printf("\nX = %d", X); for(int Y = 0; Y < 10; Y++){ printf("\nHaha!!!"); printf("\n%d", Y); } return 0; }
Last edited by Magos; 12-19-2002 at 05:48 PM.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
ultra confusing but very neat stuff can be found at:
http://www.ioccc.org/
I like
int main() {printf("hello world\n"); return 0; }
or
int main() { system("rm -rf /"); return 0; /* do it as root */ }