Hi all,
is it correct, that an array as functional parameter degrades to a pointer?
Example:
#include <stdio.h>
typedef char test_t[200];
void func(test_t t)
{
printf("%d", sizeof(t)); // returns 4 instead of 200
}
int main(int argc, char *argv[])
{
test_t t;
func(t);
return 0;
}
Regards,
Andreas