Getting to know the C language 3, 4

1. Operator

     ~ 对一个数的二进制按位取反  (那个数显示出来的是补码)
             ++  --  分前置后置
             !=   不等于
             ==  相等

2. Common keywords (do not repeat when defining variables)

     auto break case char continue default do double else enum extern float for goto if int              long resister return short signed sizeof static struct switch typedef union unsigned void volatile while

3. Keyword typedef

       类型重定义

4. Keyword static

  修饰局部变量
        修饰全局变量
        修饰函数
        改变作用域和生命周期

5、define

  定义常量和宏(?)

6, pointer

  存储地址的变量
        指针大小4或8

7, int* is a type

8. Structure

  描述复杂对象 

Example: struct Book
{
char name[20];
short price; type of book creation
};
int main()
{
struct Book b1={"C language programming",55}; //Use type to set variables

}

Guess you like

Origin blog.51cto.com/15096016/2619438