
October 1st, 2012, 11:41 AM
|
|
Registered User
|
|
Join Date: Oct 2012
Posts: 3
Time spent in forums: 32 m 45 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by b49P23TIvg by the way, I recommend puts("Hi") rather than the long winded and inefficient printf("this string has to be scanned for format specifiers\n") |
I'm actually trying to test an output for another program I'm writing, and I was putting it into a separate program (the other one won't compile yet) and it is a little more complex than just "Hi", but for some reason I couldn't get it to print anything, and so I tried several different things, and even "Hi" wouldn't print. So, that's when I came with the question.
--Edit--
I tried compiling it exactly like you did ($ gcc c.c) and it works. When I try compiling it like this ($ gcc -o test c.c) it doesn't. Is this normal, or do I have to compile to a.out all the time?
|