Hi, I normally program in java but am having to use C for some coursework and am getting a bit stuck.
I have a function which should return a 2D array which is then assigned to a variable. ie
But for the line in which func1 is called I get the following error:Code:float[4][2] func1(){ float 2Darray[4][2] = ... return 2Darray; } void func2(){ ... float var[4][2] = func1(); ... }
error: invalid initializer
Can anyone point out what I'm doing wrong?
I'm compiling with MinGW if that's of any significance.
Thanks in advance.



LinkBack URL
About LinkBacks



