int main() {
unsigned __int8 counts[5] = { 0, 0, 0, 0, 0};
sizeof(counts) //Prints 5
Func(counts);
}
void Func(unsigned __int8 counts[]){
sizeof(counts) //Prints 4
}
Could someone explain why sizeof prints two different values for the same array?