Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
9.1 and Addressing
#1
Suppose I have two functions:
Code:
void f( int * );
void g( const int * );
and the following usage:
Code:
void h()
{
int i;
int j;

f( &i );
g( &j );
}
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)