Hi,

Lev Lazinskiy wrote:
>   str = malloc (5);

malloc(6) or else "hello" will produce a buffer overflow
by its trailing 0.


>   free(str);

Yes. This is a good idea when the memory is no longer
needed. (Kids: Do this only once per malloc/calloc.)


> > http://crashworks.org/if_programming_languages_were_vehicles/
> This is amazing, I have not seen this before. Thanks for sharing :)

Google for other old computer jokes. E.g.
"how to shoot your foot" with "operating systems" / "languages"
and "Bastard Operator From Hell".
Could not find a good search term for the Blame Diagram.
So sifted out of the fog:
  http://www.astrodigital.org/digital/flowchart.html


Have a nice day :)

Thomas

Reply via email to