home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib6
/
v_08_12
/
8n12023b
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-11-01
|
258 b
|
22 lines
#include <stdio.h>
main()
{
int *f(void);
f()[2] = 'x';
printf("%c %c %c %c\n", f()[0],
f()[1], f()[2], f()[3]);
}
int *f(void)
{
static int a[] = {'a', 'b', 'c', 'd'};
return &a[0]; /* or simply, return a; */
}
a b x d