What is Segmentation fault : 11? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is Segmentation fault : 11?

Can anyone explain to me what is "segmentation fault 11" error when i run my program?

8th Feb 2017, 12:07 PM
Nur Aiman
Nur Aiman - avatar
2 Answers
0
Probably you are trying to access a place in the memory that is not availabe for you. could be that your pointer is going out of the range of declared variable but it's hard to say when we can't see the code
9th Feb 2017, 11:32 AM
Tomasz
Tomasz - avatar
0
This Error due to you're going out of allocated memory somewhere, The variable size is not declared or initialized, always be aware of this - is one of the major sources of error.
13th Feb 2017, 7:31 AM
Atul
Atul - avatar