C two dimensional array segmentation fault
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
-
GreenLeaf ·
Posted in CPUs, Motherboards, and Memory1 -
Saad1402 ·
Posted in CPUs, Motherboards, and Memory3 -
7
-
sgreenberg ·
Posted in Networking1 -
2
-
VinSen ·
Posted in Troubleshooting5 -
1
-
LLENNxP90 ·
Posted in CPUs, Motherboards, and Memory1 -
8
-
1
-
-
play_circle_filled
Latest From Tech Quickie:
Ethernet Is Named After Something Really Dumb (and other tech stories)
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