A
arne
Hi all,
imagine I call a function, but omit one of the parameters, like:
foo.c:
void foo( int a, int b ) {
/* do something with a and b */
return;
}
main.c:
int main( void )
{
foo( 21 );
return 0;
}
The value of b is then undefined inside foo, or does the standard say
something about the initialization of omitted function arguments?
Thanks in advance,
arne
imagine I call a function, but omit one of the parameters, like:
foo.c:
void foo( int a, int b ) {
/* do something with a and b */
return;
}
main.c:
int main( void )
{
foo( 21 );
return 0;
}
The value of b is then undefined inside foo, or does the standard say
something about the initialization of omitted function arguments?
Thanks in advance,
arne