学习C的笔记

【unsigned】

16位系统中一个int能存储的数据的范围为-32768~32767,而unsigned能存储的数据范围则是0~65535。由于在计算机中,整数是以补码形式存放的。根据最高位的不同,如果是1,有符号数的话就是负数;如果是无符号数,则都解释为正数。另外,unsigned若省略后一个关键字,大多数编译器都会认为是unsigned int。

【const】

const修饰的数据类型是指常类型,常类型的变量或对象的值是不能被更新的

【struct和typedef struct】

struct和typedef struct彻底明白了


【uint32_t】

uint32_t是32位无符号整形,在头文件中应该是typedef unsigned int uint32_t;

status为int的一个同义词

【void *】

如果函数的参数可以是任意类型指针,那么应声明其参数为void * ;

【::】

全局作用域符;类外声明部分

【sp<Death>&】

sp:智能指针

&:地址

【*】

BpBinder *proxy              :*表示指针

IPCThreadState* self

原文地址:https://www.cnblogs.com/lipeineng/p/6035799.html