0 votes 0 votes Answer is C . But i want to know what is segmentation fault? Programming in C programming-in-c output + – Moin Mukhtar asked Feb 12, 2018 Moin Mukhtar 400 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
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. Lakshay Kakkar answered Feb 12, 2018 selected Feb 12, 2018 by Moin Mukhtar Lakshay Kakkar comment Share Follow See all 2 Comments See all 2 2 Comments reply Lakshay Kakkar commented Feb 12, 2018 reply Follow Share By the way, seg fault occurs when one tries to access an illegal memory location (address). 2 votes 2 votes Moin Mukhtar commented Feb 12, 2018 reply Follow Share thanks bro lakshay 1 votes 1 votes Please log in or register to add a comment.