Posts by Izaias Santos • 31 points
1 post
-
3
votes2
answers176
viewsQ: Why am I getting Segmentation fault dynamic matrix?
They say not to cast on the return of function malloc, but this code there if the dimension of the matrix is above 4, it gives Segmentation fault from matriz[5][1] in the count: int main(){ int…