1
C - C++ / Re: pointers and 2d array
« on: February 08, 2016, 10:22:14 AM »
thanks ,, thats very help ful .. is there a way to make a pointer to (unknown size of 2d array) ?
i mean :
if i want to pass 2D array to a function .. and that function should work on all 2d arrays ... how is that possible .. i mean i dont know the array size at compilation time .. not after of course ..
im thinking of pointer to pointer .. not pointer to array .. but im actually new in both (classes) and (pointers) .. and i dont want to make mistake where i make (array of pointers) in that class which would take too much resources when the class is created ..
i mean :
if i want to pass 2D array to a function .. and that function should work on all 2d arrays ... how is that possible .. i mean i dont know the array size at compilation time .. not after of course ..
im thinking of pointer to pointer .. not pointer to array .. but im actually new in both (classes) and (pointers) .. and i dont want to make mistake where i make (array of pointers) in that class which would take too much resources when the class is created ..