cpp function parameters and return value pass summary