| 248 | The most common problem in programming is when you enter some data to a variable and doesn't fit on it, for example you have a char of 10 chars and you insert 15, your application can crash with these things, the solution is to use a ''dynamic allocation of memory'', for example with '''malloc''', malloc is also required for work with some special variables like object images etc... but remember that is very important to ''free'' the pointer when you have finished to use it, and the best way to do it is by having a correctly structured code, follow the ''rules'' of the ''art of unix programming'' by ESR (you must learn these rules like the 10 commandments) |