2011年4月19日
摘要: 函数的代码是在编译时候生成的,对于带有不定参数个数(甚至对于每一个参数对应的类型也不也一样)的函数,编译器怎么在支持这样的函数。1 #include < stdio.h>2 #include < string.h>3 #include < stdarg.h>4 6 int t(...) 7 {8 return 0;9 }10 /* 函数原型声明,至少需要一个确定的参数,注意括号内的省略号 */11 int demo( char *, ...) ;12 13 14 void main( void )15 16 {17 demo("DEMO" 阅读全文
posted @ 2011-04-19 16:48 RocZhang 阅读(7893) 评论(0) 推荐(0) 编辑