/bin/run.sh: line 4: 18 Segmentation fault (core dumped) ./exe
this is the code: https://ide.codingblocks.com/s/216006
/bin/run.sh: line 4: 18 Segmentation fault (core dumped) ./exe
this is the code: https://ide.codingblocks.com/s/216006
@kamakshi.behl22
Your loop was not terminating. which resulted in stack overflow.
I have just commented a few lines in your code and added a terminating condtion i==n now it works fine.