Skip to main content
3 of 4
added 17 characters in body
Mathieu Rodic
  • 1.2k
  • 1
  • 9
  • 25

C - 28 25 characters (full program)

Don't run that one, or your system will quickly get frozen!

main(){while(malloc(9));} 

As i is incremented, this will try to allocate bigger and bigger chunks of memory (without freeing it), until the malloc returns NULL when there is not enough ressources anymore.

Mathieu Rodic
  • 1.2k
  • 1
  • 9
  • 25