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.
This article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.ComputingWikipedia:WikiProject ComputingTemplate:WikiProject ComputingComputing
This article is within the scope of WikiProject Computer science, a collaborative effort to improve the coverage of Computer science related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.Computer scienceWikipedia:WikiProject Computer scienceTemplate:WikiProject Computer scienceComputer science
This article is within the scope of WikiProject C/C++, a collaborative effort to improve the coverage of C and C++ topics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.C/C++Wikipedia:WikiProject C/C++Template:WikiProject C/C++C/C++
This page has archives. Topics inactive for 100 days are automatically archived 1 or more at a time by Lowercase sigmabot III if there are more than 4.
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
I am requesting comments to move the opening bracket ('{') from a newline to the same line as the signature. My reasoning is to cite this:[1] This is cited in the page "Hello, World!" program which provides a Hello, world program in C cited from the K&R book. If approved I will apply this change to both the original "Hello, world" program and the more modern version.
I would not recommend a change. I have programmed in C for a very long time, and opening braces were always put at the same position as the closing braces. In all C (and C++ books later on) this is the way programs are represented. Don't change it because in one publication it is different. Take a look at "The C programming language" of K&R and you will see what I mean. — DandoriD (talk) 10:24, 21 October 2025 (UTC)[reply]
Please see WP:RFCBEFORE. Where is the deadlocked dispute that has made a full-blown thirty-day formal RfC necessary? Aside from that, a C compiler simply does not care. Like most ALGOL-derived programming languages, you can write it all on one line, or each token on a separate line; you can have any number of leading spaces, tabs, both or neither; and it makes not one scrap of a difference. The only time that is does matter to the compiler is when you use preprocessor directives like #include <stdio.h> which must be followed by a newline. In short, this is valid:
When you write your own C programs, you can lay it out however you like. If you are at a university, they may teach you one way; another university might teach a different way. Neither of them is wrong. The only time that it "matters" is when you work for a company that has house style rules and you're sharing code with a programming team. --Redrose64 🌹 (talk) 20:30, 21 October 2025 (UTC)[reply]
Like Dandorid, I would not recommend a change either. For the function body, I've almost always seen the opening and closing braces on their own lines in actual C sources. Since this style is very common, we should follow it (at least, for existing examples in WP, we should not change it to some other, rarely used style). The K&R book is very old, and practice has evolved to ease readability. — Vincent Lefèvre (talk) 23:41, 21 October 2025 (UTC)[reply]
The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
There is some dispute on the origin of the name "B", which also pertains to the B section of this article. It was suggested to bring it up on this talk page for more input.
As is, the paragraph in the lead of the B article needs rewriting, but I don't know what can be reliably sourced and if this starts to constitute original research. | Randomno |talk |15:36, 16 January 2026 (UTC)[reply]
Relevance of linux using rust as a mitigation for C issues
C's problems with memory safety are apparently behind a lot of cybersecurity threats.1 The move to Rust in the linux kernel is to avoid those problems. 2 This seems like a significant and relevant change. Chumpiht21:24, 28 January 2026 (UTC)[reply]