The history of computer language:
Machine Language ----> Assembly Language ----> Advanced Language (1. for process 2. Object Oriented )
any one C The program is composed of one or more program segments, each of which has its own energy, we generally call these program segments as functions . So the C Language program has a function.
Compile: put C language code translated into 0 and the 1 , it will only detect if the syntax is incorrect and will not detect Main whether the function exists
Tools:clang compiler clang compiler needs to install command line tools
directive: cc–c file name . C
The compilation succeeds and an . o file is generated
Links: is actually to take our . O object file with the system's own library of functions, generate an executable file, detect Main whether the function exists
connector
directive:CC file name . O
4. run: ./a.out
Unix directive:
1. ls-l
2. pwd
3. –o Change file name
4. Touch Create a file
Key Words also called reserved words, altogether + keywords, the keywords are lowercase
Identifiers : Some symbols and names that are customized in the program. For example: the name of the function
Data:
Classification of data: static data, Dynamic Data (temporary data)
The static data is stored on the hard disk, the dynamic Data occupies the memory space
C data types in languages: basic data types, pointer types, constructed types, empty types
Scanf
Memory addressing is large to small, priority allocating memory addresses larger bytes to variables
Output Address %p
Scanf The function only accepts the address of the variable, it is a blocking function, waiting for the user input, after the user input, the user input value will be assigned to the variable
This article is from the "I am the way of it Growth" blog, please be sure to keep this source http://jeason.blog.51cto.com/9704473/1596290
Basic grammatical points in C language