News for hackers. Stuff that matters.
Re:printf("goodbye, Dennis"); by mhartl on Friday October 21, 2011 @07:45PM (#3142230)
The code

    printf("goodbye, Dennis");
would give

    $ ./goodbye
    goodbye, Dennis$ 
What you want is to add a newline ('\n') at the end:

    printf("goodbye, Dennis\n");
Now you get

    $ ./goodbye
    goodbye, Dennis
    $
That's why the canonical "hello, world" program contains the line

    printf("hello, world\n");

There are no comments on this comment yet.