I
iu2
Hi all,
This code compiles:
int func1()
{
return 3;
}
void func2()
{
int a = func1();
}
In func2 the initialization of 'a' is done by calling to func1().
Is this ok accroding to ANSI C? (I thougt this is legal only in C+
+...)
I need to know it because the project I work on will have to be ported
to a different compiler (other than gcc), and I need to use ANSI C.
Thanks
This code compiles:
int func1()
{
return 3;
}
void func2()
{
int a = func1();
}
In func2 the initialization of 'a' is done by calling to func1().
Is this ok accroding to ANSI C? (I thougt this is legal only in C+
+...)
I need to know it because the project I work on will have to be ported
to a different compiler (other than gcc), and I need to use ANSI C.
Thanks