Abraxas/CCS  Home  Table of Contents

Module - 25.html

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite

CCS -C Test Suite for Module - 25.cpp

//25) Take parameters appropriately by value, (smart) pointer, or reference.

class c25 {
c25( );
};

// bad 25, never pass a user type by value




Function Name: f25a()

c25  f25a( c25 p ) {
    return ( p );
}



Function Name: f25b()

c25 f25b( c25 & p ) {
    return( p );
}
c25 f25c( int p )



Function Name: f25c()

{
    return( p );
}

Abraxas/CCS  Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck CCS Test-Suite CCS