Forum: C Nov 2nd, 2006 |
| Replies: 13 Views: 4,809 Probably dont even need &array to pass it to the function. The variable name itself should hold the beginning address. As a+i is the same as a[i]. |
Forum: C Nov 2nd, 2006 |
| Replies: 13 Views: 4,809 Please note that 2-d arrays are pointers to pointers. Not sure if this is the problem, but it could be if your having problem with 2-d arrays. |
Forum: C Nov 1st, 2006 |
| Replies: 13 Views: 4,809 Unfortunately you cannot return an array type in C, but you can pass back values through the parameters of your method to the array variable stored in main. To do so, pass the address of an array... |