一个奇怪的sizeof运算错误问题
现在有三个文件//config.h
extern LPCSTR AlphaTable[];
...
//config.cpp
LPCSTR AlphaTable[] = {0};
...
//xx.cpp
#include"config.h"
int n = sizeof(AlphaTable)/sizeof(AlphaTable[0]);
...
编译出错:error C2070: 'LPCSTR []': illegal sizeof operand
而且如果直接在xx.cpp中
LPCSTR AlphaTable[] = {0};
int n = sizeof(AlphaTable)/sizeof(AlphaTable[0]);
这样就没错
这是什么道理啊???????????????