13-02-2012, 10:37 PM
Suppose I have two functions:
and the following usage:
Do these violate rule #9.1? The variable is used. Furthermore, in the case of the call to g(), no possibility exists of j becoming initialized by the call, unlike the call to f() with respect to i.
Code:
void f( int * );
void g( const int * );
Code:
void h()
{
int i;
int j;
f( &i );
g( &j );
}