It depends on the compiler installed and on the operating system. In unix, you would generally say...
cc -o program program.c
or
make program
g++ -o something.o -c something.cc
Compiler-dependent. If you have Turbo C, it will be command TCC
You need a compiler. Gcc or g++ can be run from a unix shell, or a windows implementation of one like cygwin.
Coverts source code into object code
The command is "javac".
The command to compile a Java program is "javac", followed by the class name (file name).
Compiler-dependent. If you have Turbo C, it will be command TCC
javac is the command that is used to compile Java source files.
With a compiler. Read the documentation for programming package for help on how to.
No. You can compile without printing the source. Indeed, I know of no compiler that would allow a program's source to be printed while it is being compiled. They are completely separate and unrelated tasks.
ad1: install a compiler ad2: just enter the program's name at the prompt
C:> TCC.EXE foobar.c C:> foobar.exe
You need a compiler. Gcc or g++ can be run from a unix shell, or a windows implementation of one like cygwin.
When a program contains a compiler error, the compiler will detect it, preventing the program from compiling. Compiler errors must be fixed before a program will compile successfully.
Coverts source code into object code
The command is "javac".
The command to compile a Java program is "javac", followed by the class name (file name).
It is 'Java program' to be precise, and the command is: 'javac sourcefilename.java'