home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_04
/
1004109a
< prev
next >
Wrap
Text File
|
1992-02-10
|
642b
|
27 lines
Listing 7
********
int find_maximum(one, two, three)
int one, two, three;
{
if (one > two)
if (one > three)
return one;
else
return three;
if (two > three)
return two;
else
return three;
}
... or ...
int find_maximum(one, two, three)
int one, two, three; /* This could be a macro if you're
careful about side effects. */
return ((one>two)?((one>three)?one:three):((two>three)?two:three));
*********