UMBC CMSC 201 Fall '05
CSEE | 201 | 201 F'05 | lectures | news | help

Call by value vs.
call by reference

Concept

The SetToZero example

The SwapIntegers example


     void SwapIntegers (int *p1, int *p2) 
     {

        int temp;
     
        temp = *p1;
        *p1  = *p2;
        *p2  = temp;
     }

Returning multiple values


CSEE | 201 | 201 F'05 | lectures | news | help

Sunday, 25-Sep-2005 12:06:01 EDT