#include <stdio.h>
long *IncomePlus(long* pValue); /* function Prototype */
int main() {
long your_value = 30L;
long *pold_value = &your_value;
long *pnew_value = NULL;
pnew_value = IncomePlus( pold_value );
printf("\n Old value = $%d", *pold_value);
printf(" New value = $%d\n", *pnew_value);
}
long *IncomePlus(long *pValue)
{
*pValue += 10L;
return pValue;
}
|