Is modern C (C11, C17 and C2x) strongly typed compared to C99?

velox_vulnus@lemmy.ml to General Programming Discussion@lemmy.ml – 7 points –

I saw the video for C23 by ACCU, and I couldn't help but feel that C2x has gotten a bit stricter than what I had learnt. Since this is based on my intuition, and that is not reflective of the reality, I was wondering if modern versions of the language post C99 is a little bit strongly-typed?

1

I don't really have an answer for you, but can say when recompiling older codebases (some in C and some in C++) using a modern C++ compiler, typing errors are among the most common I have to address. In particular, compilers seem to insist more on explicit casts for type narrowing, which is a good thing. But I don't know about modern C itself? It wouldn't surprise me if the language has become stricter.