Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (akshvas):

how to pass a 2d array whose elements are dynamically allocated in a function ?

OpenStudy (akshvas):

C programming

OpenStudy (bonnieisflash1.0):

hello

OpenStudy (joshmorris):

iw

OpenStudy (rsmith6559):

Pass it as a pointer. If the function makes any changes, the changes would be to calling scope's array.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!