[rescue] Cooling (Long Message, sorry)

Sridhar the POWERful vance at ikickass.org
Tue Apr 16 22:51:15 CDT 2002


On Tue, 16 Apr 2002, Big Endian wrote:

> >float * test() {
> >   int x = 3;
> >   int y = 4;
> >
> >   float f[x][y];
> >
> >   return (float *)f;
> >
> >}
>
> Ok... I'm suprised this even compiles.

It should compile, but wouldn't it be better to do something like:

float ** test()
{
	int x = 3;
	int y = 4;
	float ** f;

	f = new float[x][y]; // Not sure if this is the right syntax.

	return f;
}

Peace...  Sridhar



More information about the rescue mailing list