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
Q&A

Posts tagged c

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

44%
+2 −3
80%
+6 −0
Q&A How to declare variable-length arrays correctly?

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

71%
+3 −0
Q&A Is `-isystem` a POSIX cc option?

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

86%
+11 −0
Q&A Should I check if pointer parameters are null pointers?

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

77%
+5 −0
Q&A Which functions in the C standard library must always be avoided?

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

70%
+5 −1
Q&A What does a variable followed by parentheses ("ptr()") mean?

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

Question c pointers
77%
+5 −0
Q&A How to properly use malloc?

2 answers  ·  posted 4mo ago by klutt‭  ·  last activity 3mo ago by klutt‭

77%
+5 −0
Q&A noreturn function with non-void return type

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

75%
+4 −0
Q&A stpecpy(): Design a better string copy function

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

80%
+6 −0
Q&A Is it OK to use scanf with a void pointer?

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

Question c pointers scanf
80%
+6 −0
80%
+6 −0
Q&A Are static pointers implicitly initialized to NULL?

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

83%
+8 −0
Q&A Are there references in C?

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

77%
+5 −0
Q&A C Language Standard Linking Specifications

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

Question c standard
33%
+1 −4
Q&A Regarding the implementation of data structures.

1 answer  ·  posted 6mo ago by dumplings‭  ·  edited 4mo ago by bta‭

86%
+11 −0
84%
+9 −0
Q&A Behavior of Pointer Arithmetic on the Stack

4 answers  ·  posted 5mo ago by Josh Hyatt‭  ·  last activity 5mo ago by Alexei‭

37%
+1 −3
Q&A Regarding the heap sort algorithm.

1 answer  ·  posted 6mo ago by hamburgersarecool‭  ·  edited 5mo ago by Alexei‭

Question c heap-memory sorting
40%
+2 −4
30%
+1 −5
27%
+1 −6
Q&A Can someone explain why is *f = 1?

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

Question c pointers
22%
+0 −5
Q&A Why doesn't my deletefile() function work? [closed]

0 answers  ·  posted 6mo ago by dumplings‭  ·  closed 6mo ago by Alexei‭

75%
+4 −0
Q&A How to clear the contents of a file?

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

Question c file-handling
28%
+0 −3
Q&A Data structure implementation with Linked lists.

1 answer  ·  posted 6mo ago by hamburgersarecool‭  ·  last activity 6mo ago by Alexei‭

50%
+2 −2
Q&A Why does fopen return NULL?

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

85%
+10 −0
Q&A What does the static keyword do in C?

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

77%
+5 −0
Q&A Common string handling pitfalls in C programming

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

90%
+18 −0
75%
+4 −0
Q&A How to do private encapsulation in C?

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

42%
+1 −2
Q&A How do I filter an array in C?

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

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

3 answers  ·  posted over 1 year ago by klutt‭  ·  last activity 10mo ago by klutt‭

55%
+3 −2
Q&A constructor in C

2 answers  ·  posted 11mo ago by deleted user  ·  last activity 10mo ago by Lorenzo Donati‭

Question c constructor
37%
+1 −3
Q&A Why does this code that uses a pointer-to-pointer-to-int segfault?

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

62%
+3 −1
Q&A Reading contents of XML node

0 answers  ·  posted 12mo ago by southernisles‭  ·  edited 11mo ago by Alexei‭

62%
+3 −1
Q&A BMPL: The language I'll bring to life

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

71%
+3 −0
Q&A Why use an asterisk after a type?

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

Question c pointers
50%
+1 −1
Q&A Input taking only first character of a string

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

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

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

77%
+5 −0

This community is part of the Codidact network. We have other communities too — take a look!

You can also join us in chat!

Want to advertise this community? Use our templates!

Like what we're doing? Support us! Donate