#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
int number =5;
number = cubeByReference(&number); // 因为cubeByReference的参数是指针,所以需 将number的地址传递过去
printf(" now the value of number is :%d\n",number);
system("PAUSE");
return 0;
}
cubeByReference(int *nPtr){
return *nPtr* *nPtr* *nPtr;
}