How to Compile a C program using command prompt
Printable View
How to Compile a C program using command prompt
Use command line arguments in C.... like
main(int argc, char argv[])
{
....
}
then compile it in the DOS shell........ similar like compiling Java;)
first find out the name of compiler. It will be lying in the directory of installation of c.(eg. for turbo c , It is c:\tc\bin\tc.exe);
then this path should be given to pc.
then after writing this name and your file name you can compile it...:)