home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_10_02
/
1002109a
< prev
next >
Wrap
Text File
|
1991-12-04
|
392b
|
21 lines
char *out_string;
switch (x)
{
case 0:
out_string = "zero";
break;
case 1:
out_string = "one" ;
break;
case 2:
out_string = "two" ;
break;
default:
out_string = "lots";
break;
}
printf ("The value is '%s'\n", out_string);