Why does n
not equal to 8
in the following function?
void foo(char cvalue[8])
{
int n = sizeof (cvalue);
}
But n
does equal to 8
in this version of the function:
void bar()
{
char cvalue[8];
int n = sizeof (cvalue);
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…