User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 373,501 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,851 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:

returning three dimensional array

Join Date: Oct 2007
Posts: 6
Reputation: phylon is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
phylon phylon is offline Offline
Newbie Poster

returning three dimensional array

  #1  
Nov 2nd, 2007
Hello
I am having no problem while returning 1 dimensinal array
But am having trouble with 3 dimenional array

No problem with this code
float Mat[][][];
float Mat[];

float *funct1(void)
      {
return Mat;
}

void funct2()
        {
        float *Mat;
         Mat=funct1();
}

But this doesnt work

float Mat[][][];

float *funct1(void)
{
Mat[][][]={........};
return Mat;
}

void funct2()
{
float *Mat;
Mat=funct1();
}

Is there anyway I can return 3 dimensional arrays ?
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 6:05 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC