Quote Originally Posted by Paul McKenzie View Post
Code:
    values =(int *) realloc(values,10 * sizeof(int));

    values=start;
    for(i=0 ; i<20 ; i++)
See the problem in red?

Regards,

Paul McKenzie
i willingly set i till 20 because i wanted to see if i'd get any runtime errors because i have deallocated those memory locations...

i dont get any errors.