Notes on C and Pointers

1. The int type is signed by default, which is equivalent to signed int, but whether char is signed or unsigned by default depends on the compiler; 2. When using #define to create a type name, the effect is different from that created by typedef;

#define ptr_char char* 
//a 为char* 类型,而b为char类型
prt_char a,b;

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325983717&siteId=291194637