see this code
#include<stdio.h>
int main()
{
void test(void)
{
printf("test");
return;
}
printf("main");
return 0;
}
this coed works fine and doesnt give any warning and error. I am not getting why this happening ? here i have written one function definition inside other function definition so is it valid?
EDIT: if yes then is there any usage of this ?
Why gcc needs to add this features as extension..there should be any usage of this isnt it ?!