学习笔记-typedef与const
(1)typedef int *PINT; const PINT p2; 相当于是int *const p2;
(2)typedef int *PINT; PINT const p2; 相当于是int *const p2;
(3)如果确实想得到const int *p;这种效果,只能typedef const int *CPINT; CPINT p1;
其中“ const PINT p2 ”与 “PINT const p2” 居然是等同的,这个需要注意一下。