every decade, C gets closer 2 having a standard library. in a hundred years we may finally get collections

seen from United States
seen from Yemen

seen from United States
seen from Lithuania

seen from Malaysia

seen from Germany
seen from China
seen from Japan
seen from United States
seen from Germany
seen from United States
seen from United Kingdom
seen from United States
seen from Germany

seen from Germany

seen from United States
seen from United States

seen from Spain
seen from France
seen from United States
every decade, C gets closer 2 having a standard library. in a hundred years we may finally get collections
C — The Way It’s Written — Types
This is the first part in a possibly multi-part series of posts about the C programming language. It’s based not on common examples or what you’ll see your particular C compiler output, but on what’s written in the actual standard(s) that define the language. That being ISO/IEC 9899, in particular the 2018 revision (often named C17 or C18), however due to upcoming significant changes in the next revision (C2X), I’ll be skipping over a couple bits here and there that will be deprecated or removed by said revision, I’ll also revert to older versions if needed for special cases. All that being said, unless stated otherwise these posts are about C17. This series also assumes a baseline level familiarity with programming in general and expects you to know the general syntax style of C (if you’ve written or read and C++, Java, C#, or any similar language you’re good).
int favs[5] = {1, 7, 9, 42, 8};
Pick an index
0
1
2
3
4
5
6
7
8
9
I got polls
C — The Way It’s Written — Ranks & Bytes
This is part 2 in a series of posts about the C programing language, part 1 (and series details) can be found here
What is C? A Beginner’s Guide to C Language and C Programming
what C is, why it’s important, and how you can get started with C programming When it comes to programming languages, C holds a special place as one of the most popular and foundational languages in the software development world.
Whether you’re just starting your coding journey or want to build a strong base for advanced programming, understanding C is essential. Let’s dive into what C is, why…
C language Tutorial with programming approach for beginners and professionals, helps you to understand the C language tutorial easily. Our C
I recently found out how to really enable all warnings in GCC: this answer on StackOverflow gives the following command. It outputs a string that can be directly fed as command-line arguments to GCC, and it also reminds me of the title text of xkcd#1638.
gcc -Q --help=warning,C \| sed -e 's/^\s\*\(\-\S\*\)\s\*\[\w\*\]/\1 /gp;d' \| tr -d '\n'
(The “,C” in the text above is not in the original answer. It can be changed if you're not using C.)
However, it's explicitly noted that this can make it impossible to do anything because some of the options are contradictory and most of them are things that are not worth caring about ever, meaning that chances are you're going to need to append some -Wno-s to the output or sprinkle your code with #pragma GCC diagnostic.
Findings so far include the following:
Append -Wno-system-headers or else the output will be flooded with problems you can't solve or even control.
You need to prepend -Wformat because of certain options that are contingent upon it, but are output before it because the options are outputted in alphabetical order.
Unless you're targeting extremely old compilers, you can append -Wno-traditional and -Wno-traditional-conversion.
Unless you're targeting C++ as well as C, you can append -Wno-c++-compat.
If you use any extensions at all, you should append -Wno-pedantic.
Twice i've used pragmas to disable -Wsuggest-attribute=format because it suggested using gnu_printf instead of printf as the third argument. I didn't turn this off at the command line because, though once is happenstance and twice is coïncidence, it is only coincidence, not thrice's enemy action or quadrice's GNOME Project official policy.
The -Wabi warning requires an argument; either respecify it and give it one or use -Wno-abi.
There's a warning called -Wunsuffixed-float-constants that warns about floating constants that don't have a suffix. This warns about all decimal double constants. There is no elegant way to suppress this because this warning is intended for codebases that use the _Decimal_X_ types.
Signal handlers can be static. It's something i'd never thought about, but makes sense now that i do.
There's a warning called -Walloca that warns on any usage of alloca, even with the appropriate header file. I tried searching DuckDuckGo for why this is and it got philosophical.
It's a damn shame that C doesn't mandate any specific-width floating types.
An essay i wrote largely in response to the existence of the ISO/IEC JTC1/SC22/WG14 paper N3051.
Here's an essay i wrote.