When I was using the malloc and calloc function in C, in some situation it gives me the error:
Segment Fault (core dump), in some situation, it gives me the error: Bus error (core dumped), but in some case, it has no error at all. All these things occure for the same pieice of code. (exactly the same). What's wrong with this? Any advice will help! Thanks!