Amex SPG卡免费送25K points 可换500刀现金# Apple - 家有苹果
M*8
1 楼
要求当场写code。
1 下面的int * takeaddress()有没有问题, 啥问题?
2 写个效率高的takeaddress出来, 实现同样的功能
int * paddress, address1, *r;
paddress = takeaddress(); /* defined below */
address1= paddress[0];
int * takeaddress()
{
int address[8];
/* The address are defined here */
return address;
}
1 下面的int * takeaddress()有没有问题, 啥问题?
2 写个效率高的takeaddress出来, 实现同样的功能
int * paddress, address1, *r;
paddress = takeaddress(); /* defined below */
address1= paddress[0];
int * takeaddress()
{
int address[8];
/* The address are defined here */
return address;
}