Link to home
Start Free TrialLog in
Avatar of spat
spat

asked on

c compile

hello,

im new to linux, i tried to compile the following code with the command "gcc -o test test.c"

  #include
 
  main ()
  {
    printf("Hello");
  }

the program compiled but when i run the program, nothing happens. I want to program to print in the command promt, how is this done?

thanks
ASKER CERTIFIED SOLUTION
Avatar of gunny051499
gunny051499
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial