i am making a hotel database management system and i m using many functions in it,i want to know if i get the input in the 2d dynamic array in one function,would i be able to use it in another function?
if not then what else i can do?
thanks
Printable View
i am making a hotel database management system and i m using many functions in it,i want to know if i get the input in the 2d dynamic array in one function,would i be able to use it in another function?
if not then what else i can do?
thanks
That depends entirely on your code.
As with all arrays, though, if you pass a single array as a parameter to both functions, they'll see the same block of memory. You're only copying the address, after all.