answersLogoWhite

0


Best Answer

That would depend on the compiler you were using and the file(s) you were trying to compile. Differen compilers would have different ways to run them, so you would need to know the commands for your particular compiler, if it is capable of running from the command prompt.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Compiler-dependent, it could be: TCC source, BCC source, or MSC source, or CL source, or GCC source, etc... (But of course you have to install a compiler first.)

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you Compile the C Programs in command prompt?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you compile and execute a 16 bit compiler program from a command prompt?

Compiler-dependent. If you have Turbo C, it will be command TCC


How do you compile and execute a C program from a command prompt in turboc compiler in 32 bit XP?

C:> TCC.EXE foobar.c C:> foobar.exe


What command should be given to compile a C program from the command prompt?

You need a compiler. Gcc or g++ can be run from a unix shell, or a windows implementation of one like cygwin.


How do you run c programm with add two numbers?

1. Write the program 2. Compile and link it 3. Execute it by entering its name at command prompt


How to excute c program on dos?

Command-line and IDE C compilers: There are two types of C compilers, each of which has advantages and disadvantages: (i) Command-line C compilers and (ii) IDE or Windows C compilers To compile and run a C program using a command-line C compiler, you have to go through the following steps: (i) Write the C program (call it ``myfile.c'') in a text editor or word processor (for example, the simple ``Hello'' program below), (ii) Save it as a file on your computer's hard disk, (iii) ``Compile it'' to a computer-executable program by entering a compile command at a command prompt, for example for the following C compiler programs: gcc -Wall -o myfile myfile.c (using the GNU C compiler, UNIX or Microsoft Windows) cl myfile.c (Microsoft Visual C++ command-line compiler) bcc32 myfile.c (Borland C/C++ compiler, Microsoft Windows) followed by the ``Enter'' key, and finally (iv) Run the program by entering myfile at a command prompt, again followed by ``Enter''. If you want to save the output of ``myfile'' as a text file ``myfile.txt'', enter instead myfile > myfile.txt


What is the command prompt of c language?

There is no such thing.


How do you fix corrupted recycle bin?

1. Open an elevated Command Prompt window. To open an elevated Command Prompt, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.2. Type the following command and press ENTER:rd /s /q C:\$Recycle.bin(This clears out the $Recycle.bin folder for the C:\ drive. You may have to do this for each hard disk partition in your system.)3. Type exit to close the Command Prompt window.


What is the command to check drive c for errors?

Go to the C: prompt and type CHKDESK


What will you type at the dos command line to restart the Microsoft antivirus and what to check?

You can start a Windows Defender scan in Windows 7 by entering the following script in Command Prompt. You can find Command Prompt by going to: All Programs<Accessories<Command Prompt Enter this into Command Prompt: cd C:\Program Files\Windows Defender MpCmdRun -Scan [scantype] For the scantype, you put either the numbers 1 or 2. 1=Quick Scan 2=Full Scan For example, entering "MpCmdRun -Scan -2" would start a full system scan.


How do you stop tracert from command prompt?

Press CTRL - C and it it will stop the tracert.


How do you clean out dell laptop?

In Windows XP Go to: Start>Programs>Accessories> Command Prompt.At the command prompt enter: format c:/This will format and erase all of the data on the c: drive. If you also have a d: drive then do a format d:/ command before you do the format of the c: drive.Caution: be sure you want all of the data erased as this action is not reversable.


When you double click c drive is prompt open with any programs?

1. Open Start>>Run and type cmd and press enter. This will open a command prompt window. On this command prompt window type the following steps. 2. type cd\ 3. type e: 4. type attrib -r -h -s autorun.inf 5. type del autorun.inf