Problem description:
While working on stack implement I have been facing problem " signal: illegal instruction(core dumped) " on console continuously and I think it may be because of arrow operator (->) is not working properly as I am facing this problem only when access member of stack using pointer.
so, In the end I want to know is this really a bug or some different problem .
Bug appears at this link:
https://replit.com/@YashSharma152/Imp-using-array?v=1
Browser/OS/Device: