home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_01_01
/
1n01078b
< prev
next >
Wrap
Text File
|
1990-05-17
|
275b
|
19 lines
#include "stdio.h"
int addup(int * a, int b);
int main()
{
int x = 1, y = 2, z = 0;
z = addup(&x,y);
printf("x = %d, y = %d, z = %d",x,y,z);
return 0;
}
int addup(int * a, int b)
{
*a += b;
return *a;
}