Get the output of a C program without compiling it

2.9k views Asked by At

I have a .c file and I have only a Windows command prompt. I have to get the output of the program.

Can the program be compiled without the support of TC or TC3 environment? If so kindly help.

3

There are 3 answers

5
Edwin Buck On

If you only have a ".c" file, then you don't have a program. You must compile the program first to make an executable, and then you must run the program to get its output.

1
Jeff Ames On

You could install Cygwin and then compile it using gcc.

10
Paul R On

Assuming you have internet access there are sites such as http://codepad.org which allow you to compile and run small programs in various languages online. Supported languages include C, C++ and many others.