64,685
社区成员
发帖
与我相关
我的任务
分享
//a.cpp
#include <stdio.h>
int numbers[] = {0,1,2,3,4,5};
void Foo();
int main()
{
Foo();
return 0;
}
//b.cpp
#include <stdio.h>
//extern int numbers[];
extern int *numbers;
void Foo()
{
printf("%d %d \n ",numbers[0],numbers[1]);
}