home *** CD-ROM | disk | FTP | other *** search
/ C++ for Dummies (3rd Edition) / C_FD.iso / CHAP04 / CHAP04_4.CPP < prev   
C/C++ Source or Header  |  1996-09-02  |  176b  |  15 lines

  1. // Chap04_4.c
  2. void changeArgument(int *pI)
  3. {
  4.    *pI = 10;
  5. }
  6. int main()
  7. {
  8.    int i = 5;
  9.    changeArgument(&i);
  10.    //the value of i here is now 10
  11.  
  12.    return 0;
  13. }
  14.  
  15.