12
Bubbles
3y

I can’t say it’s the most painful but it’s one of my recent painful lessons.

So I’m learning C and in my project I was trying to make a copy of a 2D array and I kept getting seg faults up the ass every time I tried to allocate one of the inner arrays and after a long day of debugging I realized that I was trying to allocate memory within an array that doesn’t exist so I had to create the first array then allocate memory for each inner array after.

Comments
Add Comment