Is it possible to use cat with execl inside a c program to print out its code without knowing the file path
As an asigment i have to print out the code of my program into the terminal using the cat command. I have understood that I need to use some variation of the execl function to achieve that but what is bothering me is that to do that I need to know the path of my file which could change, so i was wondering if there is a way to find the path of the file inside the program.