C Language Grammar

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.