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

Dashboard
Notifications
Mark all as read
Code Reviews

Posts tagged c

6 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.

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

1 answer  ·  posted 5d ago by Josh Hyatt‭  ·  edited 4d ago by Josh Hyatt‭

Question c standard
37%
+1 −3
Code Reviews Regarding the implementation of data structures.

1 answer  ·  posted 1mo ago by dumplings‭  ·  edited 7d ago by bta‭

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

1 answer  ·  posted 1mo ago by hamburgersarecool‭  ·  edited 29d ago by Alexei‭

Question c heap-memory sorting
30%
+1 −5
27%
+1 −6
Code Reviews Can someone explain why is *f = 1?

0 answers  ·  posted 1mo ago by dumplings‭  ·  edited 1mo ago by Moshi‭

Question c pointers
25%
+0 −4
75%
+4 −0
Code Reviews How to clear the contents of a file?

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

Question c file-handling
33%
+0 −2
50%
+2 −2
Code Reviews Why does fopen return NULL?

2 answers  ·  posted 1mo ago by dumplings‭  ·  edited 1mo ago by hkotsubo‭

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

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

Question c pointers
84%
+9 −0
Code Reviews What does the static keyword do in C?

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

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

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

75%
+4 −0
Code Reviews How to do private encapsulation in C?

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

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

2 answers  ·  posted 5mo ago by IDoYTSoSubHaha‭  ·  last activity 5mo ago by Derek Elkins‭

Question c javascript array
77%
+5 −0
Code Reviews How to declare variable-length arrays correctly?

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

75%
+4 −0
55%
+3 −2
Code Reviews constructor in C

2 answers  ·  posted 7mo ago by deleted user  ·  last activity 6mo ago by Lorenzo Donati‭

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

0 answers  ·  posted 8mo ago by southernisles‭  ·  edited 7mo ago by Alexei‭

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

1 answer  ·  posted 7mo ago by IDoYTSoSubHaha‭  ·  last activity 7mo ago by Lundin‭

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

2 answers  ·  posted 7mo ago by deleted user  ·  edited 7mo ago by hkotsubo‭

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

1 answer  ·  posted 7mo ago by IDoYTSoSubHaha‭  ·  last activity 7mo ago by elgonzo‭

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

1 answer  ·  posted 9mo ago by Lundin‭  ·  last activity 9mo ago by J-hen‭

77%
+5 −0
81%
+7 −0
Code Reviews .elf file - What contributes to the resulting .bin file size?

0 answers  ·  posted 1y ago by sktpin‭  ·  edited 1y ago by sktpin‭

Question c elf linker
72%
+6 −1
Code Reviews What is do { } while(0) in macros and should we use it?

2 answers  ·  posted 1y ago by Lundin‭  ·  last activity 1y ago by Pete W‭

Question c code-style macros
62%
+3 −1
83%
+8 −0
83%
+8 −0
Code Reviews Should I cast to (void) when I do not use the return value

3 answers  ·  posted over 1 year ago by Kami‭  ·  edited over 1 year ago by Monica Cellio‭

75%
+4 −0
Code Reviews Generate SIGSEGV without undefined behaviour.

1 answer  ·  posted over 1 year ago by Estela‭  ·  last activity over 1 year ago by Lundin‭

Question c++ linux gcc
86%
+11 −0
Code Reviews What is undefined behavior and how does it work?

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