• Member for 1 year, 4 months
  • Last seen more than a month ago
Use of pointers in C in Erasthenes sieve program
Accepted answer
2 votes

Your function is mallocing a value, and then overwriting it with a pointer to a local array, and then return the pointer to local array, which doesn't exist after the end of the function. This may ...

View answer