Pointer Array vs multidimensional array
Below are advantages of multidimensional array over pointer array: 1. Input can be taken from user 2. Faster access 3. Predefined size (Edit : source link of above is https://interviewmania.com/discussion/40015-c-programming-c-pointers) As I have heard that pointer is preferred over array than why multi dimensional array wins!!!!? I don't understand second advantage related to faster access... Does pointer and multi dimensional array both don't store data linearly and row column storage is just a representation...? If storage is same , how come one is faster than other ? Related to input, why can't we take input in case of any scenario ? What is stopping us to take user input? At last , what is usage of predefined size? Understand that int a[2][3] will say that 2*3*4 = 24 byte is required for array where as int** would take only 4+4 = 8 size so where else we are storing data ? Any thoughts would be of help.. thanks in advance....!