Changes between Version 53 and Version 54 of ResumedC


Ignore:
Timestamp:
Jun 21, 2010, 7:08:17 PM (14 years ago)
Author:
Thanatermesis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ResumedC

    v53 v54  
    245245 a[i] , *(a+i) , *(pa+i) ,   pa[i]     // In the same method way, the 'i' element of an array (no-pointer)
    246246}}}
     247
     248The 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)
    247249
    248250