Talk:C (programming language)/Archive 11: Difference between revisions

Content deleted Content added
m Replaced deprecated <source> tags with <syntaxhighlight> (via WP:JWB)
MalnadachBot (talk | contribs)
m Fixed Lint errors. (Task 12)
Line 237:
== "Hello world" example using puts() instead? ==
 
I think it makes more sense to use the <code>puts</code> function instead of <code>printf</code>, as the "\n" is not necessary. I have seen <code>printf</code> used in every example I can remember, however. Edit it if you think it's a good idea though. [[User:Flarn2005|'<FONTspan COLORstyle="color:blue;">[[User:Flarn2005|'''FL''</span>]][[User:Flarn2005/Esperanza|<fontspan colorstyle="color:green;">a</fontspan>]][[User:Flarn2005|<span style="color:blue;">''RN''']]</FONTspan>']][[User talk:Flarn2005|<fontspan colorstyle="color:red;">(talk)</fontspan>]] 03:25, 28 July 2010 (UTC)
: "Hello World" isn't intended as an optimized demonstration of the most efficient way of printing that string to the screen. It's just a standard way of showing a minimal program in a given language using the most common calls. A lot (and I mean A LOT) of people have dinked with the code. The way it is is the standard way that it's shown in all the C standard books. Leave it be. - [[User:Richfife|Richfife]] ([[User talk:Richfife|talk]]) 05:22, 28 July 2010 (UTC)
== Syntax highlighting in the examples ==