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 402,390 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 2,887 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: Programming Forums
Views: 1464 | Replies: 4
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  

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C Forum

All times are GMT -4. The time now is 1:17 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC