Hello
I was wondering if any of you have an explanation for this.
Code:
int main()
{
unsigned char a[] = {0x00, 0x80, 0x81};
unsigned char b[] = {0x00, 0x18, 0x00};
printf("sizeof a: %d\n", sizeof a);
multiply(a, b, f);
}
This outputs the text "sizeof a: 3".
The multiply function is then called:
Code:
void multiply(unsigned char *a, unsigned char *b) {
printf("sizeof a: %d\n", sizeof a);
}
This outputs the text "sizeof a: 4".
???
Can any of you think of an explanation for this?
Thanks in advance.