answersLogoWhite

0

For this, you need at least two things: a text editor (like notepad, edit, vi, whatever) and a c compiler. c programs are written as text files, but you can't execute your code without the compiler. There are free c compilers available, like gcc and dev-c++.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

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 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 open a dos command prompt?

Just write the name of that program. For example, if you want to execute abc.exe under c drive then just execute following commands: c:\> abc and press enter.


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 is the command prompt of c language?

There is no such thing.


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 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 to start Firefox from command line?

Install Firefox and run the following command: "cd c:\program files\mozilla firefox" and press enter.. It will give you the prompt - C:\Program Files\Mozilla Firefox> now just execute here "firefox.exe" ..


What is the command to check drive c for errors?

Go to the C: prompt and type CHKDESK


What do i type in after command prompt for windows 98?

This depends very much on what you are trying to accomplish by running Windows 98 with a command prompt. If you want to launch the taskbar or open a folder, enter "explorer." If you want to launch a certain application, navigate to that program's folder (use the "cd" command to change, ie. "cd C:\Program Files\Mozilla Firefox" to change to that folder").


How do you open a program in command prompt?

You don't directly write programs on the command prompt, but you can use programs to run commands off the command prompt. They're called batch files (or command files .cmd) There are a few guides for proper syntax in batch files, as well as ways to use the many commands. A lot of them can be found by typing "help" into the command prompt. Batch files are simple scripts that do easy tasks, such as opening files, copying directories, and deleting files. You can make menus on them and open selective files upon startup too. They don't even need to be compiled. Just use a text editor (Notepad or another program designed for scripting) and write the commands with correct syntax. It's simple and runs line-by-line. Save it as a file with a .bat file name extension, or as a .cmd extension. The files are written in Microsoft DOS format.


Can you get console commands on Xbox 360?

Yes. You can write a simple script in C#/C++ but im not sure if the actually Command prompt window would be visible. But i DO know it works. Good day!