How allocate or free only parts of an array?

Posted by drigoSkalWalker on Stack Overflow See other posts from Stack Overflow or by drigoSkalWalker
Published on 2010-03-19T18:41:15Z Indexed on 2010/03/19 18:51 UTC
Read the original article Hit count: 133

Filed under:
|

see this example:

 int *array = malloc (10 * sizeof(int)) 

Then free only the first 3 blocks?

Or make equal java, have an array with negative index, or an index that not began with 0.

Thanks a lot.

© Stack Overflow or respective owner

Related posts about c

    Related posts about array