Command to compile and execute a c file program consecutively

gcc -o output_file source_file.c && ./output_file