C, Segmentation fault (core dumped) on Ubuntu 22.04
I'm learning C and I moved recently from Windows to Linux. I was coding a simple program, getting a recurrent error: Segmentation fault (core dumped). I've analyzed all the code and realized that the error is caused by this function…