sudo apt-get install build-essential
now open gedit or any other text editor
type your program and save with .c extension.
if your program name is sample.c, type below command
gcc -o sample sample.c
it will create executable file with the name sample.
now, to run the program just type
./sample
it will run your program.
c program ubuntu,ubuntu c program,run c program in ubuntu,run c program
now open gedit or any other text editor
type your program and save with .c extension.
if your program name is sample.c, type below command
gcc -o sample sample.c
it will create executable file with the name sample.
now, to run the program just type
./sample
it will run your program.