Talk:C Programming
Add topic| This is the discussion page for discussing improvements to the C Programming page. | |||
Textbook policies
|
|||
| Archives: 1 | |||
What standard of C
[edit source]What standard of C is this wikibook about? Simulator-master (discuss • contribs) 10:44, 12 January 2021 (UTC)
- I see that C Programming/Standard library reference has some information about ANSI C (C89), ISO C (C90), ISO C (C94/C95), ISO C (C99), ISO C (C11), and I'm hoping this book continues to be updated to at least mention future versions. (I suspect it doesn't mention C17 merely because C17 doesn't introduce any new language features).
- I suspect people editing this book will generally test the examples with the default version that comes with their C compiler, which today is usually more-or-less C17 but is expected to switch to more-or-less C23 in a few years.
- My understanding is most C code in the world, including all the examples in this book, work fine with C99 or later without any special consideration.
- Simulator-master, What difference does it make? --DavidCary (discuss • contribs) 01:58, 11 December 2021 (UTC)
Undefined Behavior
[edit source]Should we include a section that touches up on undefined behavior? 50.205.11.19 (discuss) 12:55, 10 April 2025 (UTC)
Style consistency
[edit source]Hello folks, I have been working on improving the styling of this book by adding more syntax highlighting, converting some preformatted text blocks to tables, making the navigation consistently use {{Nav}}, etc. While editing the book, I discovered there are several code formatting styles in use:
- Braces on new line, 2-space indentation: C Programming/Coroutines
- Braces on new line, 3-space indentation: C Programming/Networking in UNIX
- Braces on new line, 4-space indentation: C Programming/Intro exercise
- Braces on new line, 8-space indentation: C Programming/Procedures and functions
- Braces on same line, 2-space indentation: C Programming/Program flow control
- Braces on same line, 4-space indentation: C Programming/Structure and style
There are also inconsistencies in whether there is whitespace before parentheses, after parentheses, after function names, between list items, etc. I am thinking of standardizing everything to braces on same line, 4-space indentation, and am curious if another style would work better before I start reformatting the book. huntertur (discuss • contribs) 01:12, 7 November 2025 (UTC)