Started iOS learning because of OC, it is necessary to learn some basic concepts of C. There's a lot of stuff.
It's basically a matter of programming.
0. What does programming mean?
By writing code, let the computer realize people's ideas. (Write code---> Compile Code---> Run program)
1. Program three elements, order, select, Cycle.
2. The statement constitutes a program, a statement, or an end.
3. Use GCC to compile the C language on the Linux platform. GCC can compile multiple languages. Use gcc file. c-o file on Mac. Out or direct GCC he compiles a a.out file.
4. Run the compiled file with a./file.
The type of the 5.c language occupies bytes that are affected by the operating system. The result of sizeof () is the standard.
6. Using int main () on Mac does not recommend void Main ().
7. The prefix operation efficiency is higher than the suffix efficiency.
8. The highest position in the byte bit indicates the positive or negative of the current number, so sometimes the addition is negative.
9.+-*/% Non 0 logical value is true.
10. You should develop a good habit of declaring variables to be initialized.
11. Data types are divided into two kinds 1. Basic data type 2. Pointer type
Basic review of C language (continuous)