/c-reference

A basic introduction and reference to the C programming language

Primary LanguageCBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

c-reference

A basic introduction and reference to the C programming language


Basic C program layout

/* example multiline comment syntax */
// example single line comment syntax

// 0) progname.c
// 1) copyright/licensing
// 2) includes
// 3) defines
// 4) external declarations
// 5) typedefs
// 6) global variable declarations
// 7) function prototypes

int main(int argc, char *argv[]) {
    // main function
}

// 8) function declaration