- C language
- here
Basic grammar of C language
This is the basic grammar of C language.
main function
Comments
Variables
Numerical calculation
- Four arithmetic operations on integers
- Floating point arithmetic operations
- Bitwise operator
- Shift operator
Operator precedence
Array
Conditional branch
- if statement --conditional branching
- Comparison operator
- False value
- switch statement --fast conditional branching of integers
Repeat statement
- for statement-repeated syntax
- while statement-repeating syntax
- continue statement-move to the beginning of the next loop
- break statement --break out of loop block or switch block
String
Structure
Enumeration
Pointers and addresses
Dynamic allocation of memory
type
- Type cast
- Implicit type conversion
- C type conversion rules
- typedef statement-create a type alias
- List of types