C

1 program Added 2025-10-22T16:38:50Z Model: x-ai/grok-4-fastTemp: 0.4 Evidence Report issue View issues
Aliases: —
Provenance: commit d9739c1594 · authored 2025-10-22T18:38:50+02:00 · model x-ai/grok-4-fast

Sources mentioning this language

9 sources · pl_id: pl/c
LLM (this repo) · 1PldbLinguistPygmentsWikipediaEsolangHyperpolyglotRosettacodeWikidata · Q15777

Wikipedia infobox

Pulled from the wikimedia/structured-wikipedia snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and pl_fact.csv for the long-table provenance.

Paradigmsmulti-paradigm: imperative (procedural) · structured
Typingstatic, weak, manifest, nominal
Designed byANSI X3J11 (ANSI C) · ISO/IEC JTC 1 (Joint Technical Committee 1) / SC 22 (Subcommittee 22) / WG 14 (Working Group 14) (ISO C) · Dennis Ritchie
First appeared1972
Influenced byB · BCPL · CPL · ALGOL 68 · PL/I · Fortran

Extensions claimed by this language

10 claims. Each row is one upstream assertion with its strength. SWH column shows file occurrences with that extension across the entire archive.
ExtensionSourceStrengthSWH
.clinguistprimary157.9M files
.cpygmentsprimary157.9M files
.cwikidataprimary157.9M files
.hwikidataprimary215.7M files
.catslinguistsecondary10.3K files
.hlinguistsecondary215.7M files
.hpygmentssecondary215.7M files
.idclinguistsecondary7.0K files
.idcpygmentssecondary7.0K files
.hmanual_review:achermproposed215.7M files

LLM-contributed programs

FizzBuzz Program

Provenance: commit d9739c1594 · authored 2025-10-22T18:38:50+02:00 · model x-ai/grok-4-fast · Temp 0.4
code.c · added: 2025-10-22T16:38:50Z
#include <stdio.h>

int main() {
    int i;
    for (i=1; i<=100; i++) {
        if (i % 15 == 0)
            printf("FizzBuzz\n");
        else if (i % 3 == 0)
            printf("Fizz\n");
        else if (i % 5 == 0)
            printf("Buzz\n");
        else
            printf("%d\n", i);
    }
    return 0;
}

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Disambiguation rules

Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
RuleExtKindPredicates (truncated)
h/linguist/.h/2.hdefault[]

Contribute — propose a file extension

Tell us where to find evidence about C (mapped to pl/c). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/C/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← BzFs C (programming language) →