- To compile & run your c program, open terminal and type in:
gcc -o myprogram file.c
./myprogram
Or you can execute both commands in a single go by joining them with a;
. For example,gcc -o myprogram file.c; ./myprogram
- Some info on data types & printing data types here.
- Template for a C file:
#include