摘要:
直接上代码: 1 #include 2 #include 3 4 int main () 5 { 6 int arry[] = {0,1,2,3}; 7 int val = 888; 8 int *p, *tmp; 9 10 p = &arry[0];11 val = *p... 阅读全文
posted @ 2015-04-16 15:49
HelloMarvin
阅读(513)
评论(0)
推荐(0)
摘要:
在gcc中,可以使用attribute关键字,声明constructor和destructor,来指定了函数在main之前或之后运行,代码如下: 1 #include 2 3 __attribute((constructor)) void before_main() 4 { 5 prin... 阅读全文
posted @ 2015-04-16 15:13
HelloMarvin
阅读(343)
评论(0)
推荐(0)

浙公网安备 33010602011771号