Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
yes.
char * foo()
{
static char array[] = "Hello World";
return array;
}
int* foo1()
{
static int array[20];
return array;
}
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343