Home  >  Article  >  Backend Development  >  What are the syntax rules for expressions in C language?

What are the syntax rules for expressions in C language?

angryTom
angryTomOriginal
2020-03-09 13:27:4313415browse

What are the syntax rules for expressions in C language?

What are the grammatical rules of C language expressions

The grammatical rules of C language expressions are as follows:

Recommended learning:c language video tutorial

(1) The C source program is composed of a main function and several other functions.

(2) There must be parentheses after the function name, and the function body must be placed within curly brackets.

(3) C programs must be written in lowercase letters.

(4) Add a semicolon at the end of each sentence.

(5) You can have multiple sentences in one line.

(6) can be one sentence or multiple lines.

(7) You can add comments anywhere in the program. A complete C language program is composed of a main() function (also called the main function) and several other functions, or only one main() function.

For more Introduction to Programming related knowledge, please pay attention to the PHP Chinese website!

The above is the detailed content of What are the syntax rules for expressions in C language?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn