Here is an example to the contrary:
#include <stdio.h>
int main(int argc, char *argv[])
{
int numbers[argc + 1];
printf("%lu\n", (unsigned long)sizeof(numbers));
return 0;
}
Type: Posts; User: laserlight
Here is an example to the contrary:
#include <stdio.h>
int main(int argc, char *argv[])
{
int numbers[argc + 1];
printf("%lu\n", (unsigned long)sizeof(numbers));
return 0;
}
The return type is determined at compile time... you even wrote it right there: int.
sizeof is a compile time operator, except when used with variable length arrays.
In your example, the result of sizeof(a) does not change from one run of the program to another, so I do not see...