C two dimensional array segmentation fault
![FakezZ](http://pbs-prod.linustechtips.com/monthly_2019_08/IMG_20190729_212108_475.thumb.jpg.c32249a8a125414d717f5823c3746440.jpg)
By
FakezZ
in Programming
in Programming
Go to solution
Solved by Mr_KoKa,
You are assigning NULL to mem instead comparing it against NULL in the first if. The whole if condition evaluates to NULL so it is not fulfilled and doesn't return 1.
-
Featured Topics
-
Topics
-
DaltonM ·
Posted in Troubleshooting0 -
0
-
6
-
Sandels13 ·
Posted in Troubleshooting1 -
ZippyKiYay ·
Posted in Troubleshooting5 -
1
-
0
-
Henru ·
Posted in CPUs, Motherboards, and Memory1 -
0
-
1
-
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now