About #define and typedef
来源:互联网 发布:对外汉语网络教师 编辑:程序博客网 时间:2024/06/05 20:56
I wrote a simplified version function of vsprintf(char *buf, char *fmt, va_list args).
finally I found I use "#define va_list char *" rather than "typedef char * va_list"
so , the following is the difference between them.
#define int_ptr int *
int_ptr a, b; // a is a pointer ,b is a int.
typedef int* int_ptr;
int_ptr a, b; //both a and b are pointer.
typedef int * pint ;
#define PINT int *
const pint p ;// p is unchanged ,the content that p point could be changed.
const PINT p ;//p could be changed ,the content that p point could not be changed.
- About #define and typedef
- typedef and define
- define and typedef
- #define and typedef
- define and typedef
- #define and typedef
- Difference Between typedef and #define
- Usage of typedef and define
- Differences between typedef and #define
- The difference between 'typedef' and '#define'
- The differences between define and typedef
- About define()
- About typedef
- typedef&#define
- typedef & define
- typedef、define
- typedef define
- typedef define
- git 临时忽略本地文件
- AdaBoost
- MongoDB学习之三----Java操作MongoDB
- OC基础语法学习笔记
- Objective-C category (类别) 和 protocol (协议)
- About #define and typedef
- Android中Activity启动模式详解
- 笔试题:排序、冒泡排序、快速排序
- WPF+WEBBROWSER对本地文件弹出警告框的处理
- 使用Hubson的iOS工程的CI集成
- Code Signing Identity 没有下拉选择项的解决办法
- MEF初步
- Objective-C——委托模式
- OpenStack(Grizzly) cinder-volume时序图