Hey guys, I am a novice programmer, with no formal experience. I think this is common knowlege amoung programmers with formal training, but how do i pass an array between two functions?
I know I cant do it like this
Void blah(int x[10][10])
I am barely familiar with pointers, but not enough to know if thats what i need to use here, to pass the array between two functions without making it global. The thing is I wouldnt even ask if i had a clue what to look for to learn it myself, but i just dont know what to look for to find the answer. I would be very greatful if someone could help me with possible ways to do this. If you need me to explain better what I am trying to accomplish, I will try my best.
If it is pointers that I need to use, I should add that I only know the idea of pointers, not how to use them, so if someone could show an example or where to learn about them I would be equally happy with that. I did look up pointers, but apparently its a much broader subject than I anticipated. I will be greatful for any help at all, thanks!
I know I cant do it like this
Void blah(int x[10][10])
I am barely familiar with pointers, but not enough to know if thats what i need to use here, to pass the array between two functions without making it global. The thing is I wouldnt even ask if i had a clue what to look for to learn it myself, but i just dont know what to look for to find the answer. I would be very greatful if someone could help me with possible ways to do this. If you need me to explain better what I am trying to accomplish, I will try my best.
If it is pointers that I need to use, I should add that I only know the idea of pointers, not how to use them, so if someone could show an example or where to learn about them I would be equally happy with that. I did look up pointers, but apparently its a much broader subject than I anticipated. I will be greatful for any help at all, thanks!