You are viewing a single comment's thread. Return to all comments →
SegFault means you are trying to access a memory address you are not allowed to. It's propably because you are not reallocating the memory of the arrays each time you add a new element in type 1 querry. Use realloc function.
can u explain what are the arguments inside realloc and how they works