Computer Science, asked by IYINZ5717, 1 year ago

How to run c program in command prompt using turbo c?

Answers

Answered by kumaresnsuganpbffhz
0
first open window key
next go to search boy and type cmd
now open command prompt
Answered by phillipinestest
0

"To run a "C program" in "command prompt" using "Turbo C", there are two approaches which can be followed here:

1. By setting the environment variable

       • Open the environment variable menu and edit the path variable. Add the directory location of the Turbo C compiler in it. Generally, the "Turbo C" Compiler is located at C:\tcc\bin.

       • Now, navigate to the directory where we have to save the c program file in cmd using cd command and run this command: tcc filename.c and then tcc filename

2. By copying "file to the bin" directory

        • Copy the C program file to the tcc compiler directory

        • Navigate to the directory where tcc compiler is located in cmd using cd command and run this command: "tcc filename.c" and then "tcc filename"."

Similar questions