0
Segmentation fault
Does anyone know why segmentation fault happens when i input size over 11? https://code.sololearn.com/cj2ZvrK2N1x2/?ref=app
5 Respuestas
+ 4
mati938 Kindly refer this thread to understand segmentation fault.
Edit: Also how can an array already declared with size 10 can take size 11?
https://www.sololearn.com/Discuss/2077837/?ref=app
+ 2
because you exceeded the size of the array. n[10][10].
when c or r is greater than 9 it will be out of index range.
+ 2
segmentation fault occurs when you try to access memory that doesnt exist.
0
Thank you all so much, I'll try to not commit this mistake again :)
0
You have problems with indexes starting at zero?