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