Hi Piyush ,
I think gcc comes preloaded with Ubuntu.
Give 'which gcc ' so that you can ensure whether gcc is on place.
If no gcc present you can install it using package manager or can download,compile&install.
printf ("BOss My Generation from C \n");
Suppose your filename is print.c,take a terminal
YOu can compile with gcc print.c,generates a file a.out,
to compile that give ./a.out in the directory where a.out is present.
compile with gcc print.c -o output
then run ./output instead of a.out in previous case.
you can give whatever name instead of output,u like