Talk:C Programming/Intro exercise

Please correct the comments in the C code
The code which follows 'The commented program below is basically the same' is poorly written, needs line-breaks to avoid trailing text, and may be too advanced or too much information. Please let's correct it. If I knew C, I would, but I don't. --74.12.87.96 (discuss) 00:51, 24 April 2015 (UTC)

The Classical "Hello World!" Program
This whole section is presently in need of revision. It is not at all an appropriate first section. At present, it discusses interfacing with Unix. It addresses functions, command line args, and the relationship between pointers and arrays before they are introduced in the text, etc. Some of the prose needs to be made more coherent.

The first version of "Hello World!" is presently described as coming from Kernighan and Ritchie's The C Programming Language. Although K&R do provide a "Hello World!" program, it is not true that the implementations are equally composed. This version includes additional material that I believe is fine as-is. Hence, I'm removing the K&R reference instead of adjusting the code to match theirs.

Both the first and second version of "Hello World!" currently include stdlib.h. In the first, this is unnecessary. In the second, the discussion of exit is out of scope.

The wall of commented code seems unnecessary. 4+ lines of comments are following single include statements, and the comments are also touching on material that is entirely outside of the scope of this section.

I'm rewriting this to make it accessible to those new readers who aren't familiar with C or with programming in general. Dear original IP editor: I'm going to try to maintain the spirit of your writing through forward linking to material later in the text. Ingcake (discuss • contribs) 20:44, 27 May 2015 (UTC)

Made the revision. If folks would still prefer something else, could I suggest the Wikipedia article on the subject? Ingcake (discuss • contribs) 00:18, 28 May 2015 (UTC)

Puts instead of printf
Why hello world program example use always printf. Puts would not be also possible to use?.