Talk:C (programming language)
| This is the talk page for discussing improvements to the C (programming language) article. This is not a forum for general discussion of the article's subject. | |||
| Article policies | ||
| This article is of interest to the following WikiProjects: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C (programming language) has been listed as a level-4 vital article in Technology. If you can improve it, please do. This article has been rated as C-Class. |
| C (programming language) is a former featured article. Please see the links under Article milestones below for its original nomination page (for older articles, check the nomination archive) and why it was removed. | ||||||||||||||||
| ||||||||||||||||
| Current status: Former featured article | ||||||||||||||||
Daily pageviews of this article ![]() |
| C Intermediate Language was nominated for deletion. The discussion was closed on 29 April 2013 with a consensus to merge. Its contents were merged into C (programming language). The original page is now a redirect to this page. For the contribution history and old versions of the redirected article, please see its history; for its talk page, see here. |
| Sources for development of this article may be located at "C programming language" – news · newspapers · books · scholar · JSTOR · free images |
Archives | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||
| Threads older than 100 days may be archived by MiszaBot I. |
Pointer values[edit]
- Pass-by-reference is simulated in C by explicitly passing pointer values.
'Pointer values' is specifically ambiguous. Suggest 'addresses' instead. Also: 'pass-by-reference' seems new. The accepted terms are 'call by reference' and 'call by value' (with a third method unused but for Algol - 'call by name'). Also: it's not really 'simulated' either, is it? It's done.
Assuming incorrect use of print formatted in an example[edit]
Based on https://en.wikipedia.org/wiki/Talk:C_(programming_language)/Archive_8#%22Hello,_world%22_example as referenced in the current page (https://en.wikipedia.org/w/index.php?title=C_(programming_language)&diff=930286305&oldid=930286262) as:
<!-- READ THIS BEFORE YOU EDIT! If you think there is a better way, first see talk page archive No. 8 for why. If you still want to change it, discuss it first. -->
#include <stdio.h> int main(void) { printf("hello, world\n"); } Looks like wrong use of pritnf where
print formatted (printf) is designed to work with a provided format as referenced on https://en.wikipedia.org/wiki/Printf_format_string#Syntax meaning that the correct code should look like:
#include <stdio.h> int main(void) { printf("%s\n", "Hello world"); // ^^^^^^ - Notice format string for printf used } This should be updated for all printf mensions in this article. --Kreyren (talk) 23:19, 11 December 2019 (UTC)
- A printf format string need not have parameter format specifications. Adding them where not needed is distracting to the reader. --A D Monroe III(talk) 00:56, 26 June 2020 (UTC)
About the Hello World Example[edit]
I think that the hello world example should be like this:
#include <stdio.h> int main(){ printf("%s\n""Hello World!"); return 0; } - That's incorrect too and will most likely result in a runtime crash.
—ThesenatorO5-2 (talk • contribs) 09:38, 25 June 2020 (UTC)
As things stand right now, your second example will result in a compiler warning, won't it? You specifically indicate an 'int' return value but return nothing. That's anything but 'standard-conforming' as you call it.
Brian was brilliant at educating in that book. The way he told you something but also left off tidbits and crumbs for the lesson coming up.
The actual purpose of hello world is to get your environment up and running.
Cheers.
Source[edit]
In private conversation with Bjorn Sjostrup, he confirmed that previous compilers from other coders were considered as sources for good ideas, as was the norm for the time: we were building an industry, and the patent rights now claimed should be carefully examined as non-original work: bubble sorting and bitmapped fonts were part of this for sure, because I worked on them! — Preceding unsigned comment added by 90.197.51.50 (talk) 22:49, 7 July 2020 (UTC)
- That's a start. You might be able to find a reliable source. Private conversations aren't that. TEDickey (talk) 22:56, 7 July 2020 (UTC)
TempleOS[edit]
I agree that the IP's effort (diff) to add HolyC (linked to TempleOS) to the infobox is WP:UNDUE. In fact I can't think of a DUE way of mentioning HolyC or TempleOS at this article but any long-term C coders (hi Guy Macon) might like to review the stunning achievement of TempleOS (it's crazy but a magnificent achievement with, for example, JIT-compiled HolyC as the shell language) and think about what articles could link to it. Johnuniq (talk) 00:10, 26 July 2020 (UTC)
- (I am mostly an assembly-language programmer, but I can code in C if I have to.)
- HolyC: not to be confused with Holy See. :)
- It certainly does simplify things if the system's features are explicitly instructed to you by God...
- You can run it in a virtual machine: [ https://eleni.mutantstargoat.com/hikiko/holy-days-temple-os ]
- Rosetta Code has a category for programs written in HolyC: [ https://rosettacode.org/wiki/Category:HolyC ]
- Alas, the one thing HolyC isn't is a variation of the C programming language. If you look at the description here:[1] you will see that it is a new programming language with some similarities to C. --Guy Macon (talk) 00:58, 26 July 2020 (UTC)
- B-Class Computing articles
- Top-importance Computing articles
- B-Class software articles
- Top-importance software articles
- All Software articles
- B-Class software articles of Top-importance
- B-Class Computer science articles
- High-importance Computer science articles
- All Computing articles
- WikiProject Computer science articles
- C-Class C/C++ articles
- Top-importance C/C++ articles
- C articles
- WikiProject C/C++ articles
- Wikipedia level-4 vital articles in Technology
- Wikipedia C-Class vital articles in Technology
- Wikipedia C-Class level-4 vital articles
- Wikipedia former featured articles

No comments:
Post a Comment