Ad
  • Custom User Avatar

    calloc doesinitialize your memory block with 0s, but malloc does not.
    So the problem may relate to that.

    Maybe you didn't put a null ending in the string array?
    I didn't do the exercise in c yet so I am not sure.