Could someone clarify this for me?
I dont understand why case 1 works and why case 2 doesn't.
the compiler gives a warning, complaining about code has no effect for case 2
case1:
------------------------------------
void func1( void )
{
int s_count;
func2( &s_count );
}
void func2( int *count )
{
count++;
}
------------------------------------
case 2:
------------------------------------
void func1( void )
{
int s_count;
func2( &s_count );
}
void func2( int *count )
{
*count++;
}
------------------------------------