N
noname_is_me
int (*foo)(void);
int bar(void)
{
unsigned int a = 10;
foo = &bar;
return a;
}
int main(void)
{
unsigned int a[(foo)()];
printf("%d\n",sizeof a);
return 0;
}
gcc does not give any compile time error. But the program crashes. why?
Array 'a' can not
be decleared with size 10 * 4 size? Please help.
int bar(void)
{
unsigned int a = 10;
foo = &bar;
return a;
}
int main(void)
{
unsigned int a[(foo)()];
printf("%d\n",sizeof a);
return 0;
}
gcc does not give any compile time error. But the program crashes. why?
Array 'a' can not
be decleared with size 10 * 4 size? Please help.