Jump to content

Talk:C Programming

Page contents not supported in other languages.
Add topic
From Wikibooks, open books for an open world
Latest comment: 24 days ago by Huntertur in topic Style consistency

What standard of C

[edit source]

What standard of C is this wikibook about? Simulator-master (discusscontribs) 10:44, 12 January 2021 (UTC)Reply

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 (discusscontribs) 01:58, 11 December 2021 (UTC)Reply

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)Reply

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:

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 (discusscontribs) 01:12, 7 November 2025 (UTC)Reply