B
Ben C
Why does this compile with no warnings, what, if anything, does it mean,
and why does the program print out 1?
#include <stdio.h>
int main(void)
{
printf("%d\n", sizeof(int()));
return 0;
}
I know I probably "meant" sizeof (int), not sizeof (int()). I'm just
curious.
Thanks in advance for any explanations.
and why does the program print out 1?
#include <stdio.h>
int main(void)
{
printf("%d\n", sizeof(int()));
return 0;
}
I know I probably "meant" sizeof (int), not sizeof (int()). I'm just
curious.
Thanks in advance for any explanations.