摘要:
#include #include //malloc free #include //sleep void main1(){ //int a[1024*1024*1000]; //数组只能处理小数量的数据 int num =100; //int b[num]; 数组的大小必须明确,num是变量,随时可以变化 //数组内存这种分配机制就称为静态分配,数... 阅读全文
posted @ 2019-08-07 14:47
Coding_Changes_LIfe
阅读(2414)
评论(0)
推荐(0)
摘要:
#include int add(int a, int b ){ //函数的返回值和参数意一样有副本机制,存储在寄存器中,而不在内存中,函数的返回值不能取地址 &add() return a+b; } void main1(){ //定义函数指针的三部曲 int add(int a, int b ); //第一步:函数声明 int (*p)(int a, in... 阅读全文
posted @ 2019-08-07 09:56
Coding_Changes_LIfe
阅读(415)
评论(0)
推荐(0)

浙公网安备 33010602011771号