home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_11_09
/
1109112a
< prev
next >
Wrap
Text File
|
1993-07-13
|
257b
|
21 lines
/* array4.c: Indexing a string literal */
#include <stdio.h>
main()
{
int i;
for (i = 0; i < 10; i += 2)
{
char c = "0123456789"[i];
putchar(c);
}
putchar('\n');
return 0;
}
/* Output
02468
*/