Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Notifications
Mark all as read
Code Reviews

Posts tagged c

11 child tags

Use this tag for questions concerning use of the C programming language and for questions containing code in the C language. Avoid using it together with the C++ tag unless your question is explicitly about code compatibility or differences between C and C++.

Unless the question explicitly mentions which version of the C standard that is uses, the current active version of ISO 9899 is assumed (C17/C18).

When applicable, always include information about which compiler and target system you are using.
Tag Wiki

The C language is a general-purpose programming language developed by Dennis Ritche at Bell Labs in the early 1970s. The original purpose was kernel- and application programming for the UNIX operative system, which is why many of the standard functions and libraries in C originate from UNIX.

In the 70s and 80s, there was no formal standardization of C. The closest thing to a canonical source was the book The C Programming Language, written by Brian Kernighan and Dennis Ritchie. The book is referred to as "K&R" (Kernighan & Ritchie) and everything before standardization is therefore usually called "K&R C".

The first standardization of the language was carried out in USA, by ANSI in the year 1989. This first version is therefore widely known as "ANSI C". One year later in 1990, the ANSI standard was adopted internationally by ISO, why this version of the language is also often called "C90". Technically, "ANSI C", "C89" and "C90" are identical.

The language standard has since then been revised several times:

  • a minor revision in 1995 ("C95")
  • a major revision in 1999 ("C99")
  • a major revision in 2011 ("C11")
  • a minor revision in 2017 ("C17" or "C18", since it was released by the committee in 2017 but published by ISO in 2018).

These revisions are typically backwards compatible, but modern C code will not run on older compilers. C17 is the current standard. The C language is technically owned by ISO and it is maintained by the ISO committee JTC1/SC22/WG14.

The formal name for the standard is ISO/IEC 9899 - Information technology - Programming languages - C. Draft versions of the C standard are usually available free of charge, such as draft N1548 of C11.

62%
+3 −1
Code Reviews C naming convention, module trigrams?

3 answers  ·  posted 9d ago by AdriZ‭  ·  last activity 6d ago by Dirk Herrmann‭

71%
+3 −0
Code Reviews Cast uninitialized variable to (void)

4 answers  ·  posted 23d ago by Estela‭  ·  last activity 17d ago by Ethan‭

Question c casting
85%
+10 −0
Code Reviews How to do private encapsulation in C?

1 answer  ·  posted 1y ago by Lundin‭  ·  last activity 1mo ago by Lundin‭

33%
+2 −6
Code Reviews Regarding the implementation of data structures.

1 answer  ·  posted 10mo ago by dumplings‭  ·  edited 3mo ago by Alexei‭

40%
+2 −4
50%
+2 −2
Code Reviews Why does fopen return NULL?

2 answers  ·  posted 10mo ago by dumplings‭  ·  edited 3mo ago by dumplings‭

60%
+1 −0
80%
+6 −0
80%
+6 −0
Code Reviews How to declare variable-length arrays correctly?

1 answer  ·  posted 1y ago by Lundin‭  ·  last activity 5mo ago by Lundin‭

71%
+3 −0
Code Reviews Is `-isystem` a POSIX cc option?

1 answer  ·  posted 5mo ago by alx‭  ·  last activity 5mo ago by InfiniteDissent‭

86%
+11 −0
Code Reviews Should I check if pointer parameters are null pointers?

4 answers  ·  posted 6mo ago by Lundin‭  ·  last activity 6mo ago by Dirk Herrmann‭

77%
+5 −0
70%
+5 −1
Code Reviews What does a variable followed by parentheses ("ptr()") mean?

2 answers  ·  posted 10mo ago by dumplings‭  ·  last activity 6mo ago by Martin Bonner‭

Question c pointers
77%
+5 −0
Code Reviews How to properly use malloc?

2 answers  ·  posted 8mo ago by klutt‭  ·  last activity 7mo ago by klutt‭

77%
+5 −0
Code Reviews noreturn function with non-void return type

1 answer  ·  posted 8mo ago by alx‭  ·  edited 8mo ago by alx‭

75%
+4 −0
Code Reviews stpecpy(): Design a better string copy function

1 answer  ·  posted 8mo ago by alx‭  ·  edited 8mo ago by alx‭

80%
+6 −0
Code Reviews Is it OK to use scanf with a void pointer?

2 answers  ·  posted 8mo ago by hkotsubo‭  ·  last activity 8mo ago by Lundin‭

Question c pointers scanf
80%
+6 −0
80%
+6 −0
Code Reviews Are static pointers implicitly initialized to NULL?

1 answer  ·  posted 8mo ago by klutt‭  ·  last activity 8mo ago by Lundin‭

83%
+8 −0
Code Reviews Are there references in C?

4 answers  ·  posted 8mo ago by Lundin‭  ·  last activity 8mo ago by klutt‭

77%
+5 −0
Code Reviews C Language Standard Linking Specifications

1 answer  ·  posted 9mo ago by Josh Hyatt‭  ·  edited 9mo ago by Josh Hyatt‭

Question c standard
84%
+9 −0
37%
+1 −3
Code Reviews Regarding the heap sort algorithm.

1 answer  ·  posted 10mo ago by hamburgersarecool‭  ·  edited 10mo ago by Alexei‭

Question c heap-memory sorting
75%
+4 −0
Code Reviews How to clear the contents of a file?

1 answer  ·  posted 10mo ago by dumplings‭  ·  edited 10mo ago by hkotsubo‭

Question c file-handling
28%
+0 −3
85%
+10 −0
Code Reviews What does the static keyword do in C?

1 answer  ·  posted 10mo ago by Lundin‭  ·  last activity 10mo ago by Lundin‭

77%
+5 −0
Code Reviews Common string handling pitfalls in C programming

1 answer  ·  posted 11mo ago by Lundin‭  ·  last activity 11mo ago by Lundin‭

42%
+1 −2
Code Reviews How do I filter an array in C?

2 answers  ·  posted 1y ago by General Sebast1an‭  ·  last activity 1y ago by Derek Elkins‭

Question c javascript array
75%
+4 −0
Code Reviews Counting number of assignments that a `fscanf` format strings implies

3 answers  ·  posted almost 2 years ago by klutt‭  ·  last activity 1y ago by klutt‭

55%
+3 −2
Code Reviews constructor in C

2 answers  ·  posted over 1 year ago by deleted user  ·  last activity 1y ago by Lorenzo Donati‭

Question c constructor
37%
+1 −3
62%
+3 −1
Code Reviews Reading contents of XML node

0 answers  ·  posted over 1 year ago by southernisles‭  ·  edited 1y ago by Alexei‭

62%
+3 −1
Code Reviews BMPL: The language I'll bring to life

1 answer  ·  posted 1y ago by General Sebast1an‭  ·  last activity 1y ago by Lundin‭

71%
+3 −0
Code Reviews Why use an asterisk after a type?

2 answers  ·  posted over 1 year ago by deleted user  ·  edited over 1 year ago by hkotsubo‭

Question c pointers
50%
+1 −1
Code Reviews Input taking only first character of a string

1 answer  ·  posted over 1 year ago by General Sebast1an‭  ·  last activity over 1 year ago by elgonzo‭

Question c string input
87%
+12 −0
Code Reviews Is strcpy dangerous and what should be used instead?

1 answer  ·  posted over 1 year ago by Lundin‭  ·  last activity over 1 year ago by J-hen‭

77%
+5 −0
Code Reviews Warn of implicit cast in a function's arguments with GCC?

2 answers  ·  posted over 1 year ago by Quasímodo‭  ·  last activity over 1 year ago by Lundin‭