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

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.

75%
+4 −0
Q&A Are there references in C?

1 answer  ·  posted 21h ago by Lundin‭  ·  last activity 21h ago by Lundin‭

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

1 answer  ·  posted 15d ago by Josh Hyatt‭  ·  edited 14d ago by Josh Hyatt‭

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

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

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

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

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

1 answer  ·  posted 2mo ago by hamburgersarecool‭  ·  edited 1mo 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 2mo ago by dumplings‭  ·  edited 2mo ago by Moshi‭

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

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

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

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

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

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

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

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

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

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

Question c pointers
84%
+9 −0
Q&A What does the static keyword do in C?

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

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

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

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

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

42%
+1 −2
Q&A 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
Q&A How to declare variable-length arrays correctly?

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

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 6mo ago by klutt‭

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

2 answers  ·  posted 7mo ago by deleted user  ·  last activity 6mo 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 7mo ago by M3dc0d‭  ·  last activity 7mo ago by Lundin‭

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

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

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

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

71%
+3 −0
Q&A 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
Q&A 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
Q&A 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
Q&A .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
Q&A 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
Q&A What's the difference between null pointers and NULL?

3 answers  ·  posted over 1 year ago by Lundin‭  ·  last activity 1y ago by EJP‭

83%
+8 −0
Q&A Is MISRA-C useful outside safety-critical and embedded programming?

1 answer  ·  posted 1y ago by Lundin‭  ·  last activity 1y ago by ghost-in-the-zsh‭

Question c misra-c
80%
+6 −0
83%
+8 −0
Q&A 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
Q&A 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
Q&A 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‭

80%
+6 −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