-2
我正在尝试仅使用指针修改数组。使用指针修改数组中的索引
void modify(){
int *ptr = &b[2];
*ptr = 90;
}
//I have my main function
void main() {
int b[15];
//fill the array with values using loop..skipping this part
modify();
}
,它给我的错误是:错误:使用未声明的标识符“B”的
谁能给我一些见解,为什么编译器不能识别数组b?