rahul_shilps
June 8th, 2009, 04:49 AM
Hi,
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.
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.