[EMAIL PROTECTED] wrote:
I find this interesting.
char* somefunction()
{
char string2[] = "some words";
return string2;
}
--
doesn't
Hi Yiz,
A couple of people have explained why the above does
not work.
My attention will focus on How
On Wed, 2005-11-23 at 13:13 +1100, Benno wrote:
> On Tue Nov 22, 2005 at 19:47:51 -0600, [EMAIL PROTECTED] wrote:
> >-
> >char* somefunction()
> >{
> > char string2[] = "some words";
> > return string2;
> >}
> >--
> >doesn
On Tue Nov 22, 2005 at 19:47:51 -0600, [EMAIL PROTECTED] wrote:
>
>I find this interesting.
>
>This piece of code
>---
>char* somefunction()
>{
> char *string2 = "some words";
> return string2;
>}
>---
In this case
I find this interesting.
This piece of code
---
char* somefunction()
{
char *string2 = "some words";
return string2;
}
---
works, but this piece of code
-
char* somefunction()
{