400 views

1 Answer

Best answer
3 votes
3 votes
The cause of segmentation fault here is Stack Overflow. As there's no termination condition, main() recursively calls itself, thus overflowing the stack and leading to Segmentation Fault.
selected by

Related questions

0 votes
0 votes
3 answers
1
moin asked Mar 8, 2017
697 views
Ans is C can anybody justify why compilation error
0 votes
0 votes
2 answers
2
moin asked Mar 8, 2017
1,209 views