lets say i created a 2-dimentional array in a function, let's call it
is there a way to return a full array into the main portion of a program?Code:#include... char array(){ ... ... return ???; } int main(){ char board[50][50]; ... ... board[50][50] = array(); /*this part is totally wrong, but i think you should understand what im trying to do by this*/ return 0; }
if not, can you somehow loop the function such that it is able to return the specific array values back into the main?



LinkBack URL
About LinkBacks



