0
Saving path?
I want to run my code which is saved on for example desktop..I have to move my code to compiler folder to run it..is there a way to run your code anywhere it is saved?
4 Respostas
+ 1
You can use terminal and gcc commands to compile the code where ever the code is, later you can run the executable using terminal.
+ 1
If you have gcc installed in your computer run
gcc filename.c -o executablename
It will generate an executable file. Than simply type
./executable
In terminal to run the code. Also you can add this path to system paths to access this code anywhere on computer using terminal.
0
Thank you but i want to interpret my code on windows not linux
0
This works on both windows and Linux. Actually I was answered taking windows in perspective.