Program--source program | Start < file header >|< function > End
source program → External declarations | Sub-Program (external Declaration)
File Header--functions
Function---Library function | function Body | user-defined function
Library functions, #include <stdio.h>| #define ...
function body, function definition | function declaration | Statement string | SELECT structure
function definition → function type (compound sentence) | variable
Variable--Identifier
Identifiers-Letters | numerals | underline
English letter with capital Letter | lowercase English Letter
User-defined function type | function name |
Type of function, data type
Data type, Basic type | Construction type | pointer type | no type
Basic Type-integer | real (Floating-point) | character | enum type
Integral type--signed integer | unsigned integer | Long integer type | unsigned long
Real types-Different forms of real type
Different forms of real type--Decimal decimal form | exponential form
Different types of real, single-precision real | Double Precision | Long double precision REAL type
Character type
enum-type
Constructed type-array | struct | shared body
Array--numeric array | character array
Array of values, one-dimensional arrays | two-dimensional arrays | multidimensional arrays
Character array-string | array of strings
Pointer type, function pointer | array pointer | string Pointers | Pointer to pointer
Function name->cxp| ...
Simple screen output-string | Variable value by specified format | data type
Assignment operator, assign-value-operand |
Simple operator, assignment operator | compound operator
Simple operator, multiplication (*) | Division (/) | redundancy (%) | addition (+) | subtraction (-)
Compound operator->+=|-=|*=|/=|%=
Operands, constants | variables | functions
Statement string, loop statement | array | pointer | data type | number | struct | Select Structure | variable | constant | operator | symbol | keyword | character
Loop Statement->for|switch|do-while|while
Select structure, single branch structure | Branch Structure | multi-branch Structure | nested structure
C Language Grammar