I have a file stored in some location and I want to use this file some other C program. If I give the path of the file hard coded in the program then later on if I move the file to some other location then again I have to change the path of the file in the program. But instead I want to make the program recognize the file path even if I change the file location somewhere. How to achieve the same?