View Full Version : How to run C file

June 8th, 2009, 09:49 AM

I am able to compile a 'c' file.

I write command:
$ gcc hello.c

Compiles successfully.

After firing this command it should print "HelloWorld" on my terminal. But not printing anything on terminal. I made sure that i have writen 'printf' statement in hello.c.

Why its not printing HelloWorld?
Does this command "gcc hello.c" only comiles c file and not run the c file?

If it is , then how can i run the C file to see the O/P?

Thank you.

June 8th, 2009, 09:55 AM
thank you. I solved the problem. No need to post reply now.