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?

29th Dec 2020, 10:29 AM
Ruby Parker
Ruby Parker - avatar
4 Réponses
+ 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.
29th Dec 2020, 10:53 AM
Padala Vamsi
Padala Vamsi - avatar
+ 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.
29th Dec 2020, 10:56 AM
Padala Vamsi
Padala Vamsi - avatar
0
Thank you but i want to interpret my code on windows not linux
29th Dec 2020, 5:59 PM
Ruby Parker
Ruby Parker - avatar
0
This works on both windows and Linux. Actually I was answered taking windows in perspective.
29th Dec 2020, 6:00 PM
Padala Vamsi
Padala Vamsi - avatar