hello,
the code is posted below.Why 1 is working and other one doesn't even though both point to the base address of 2D array
Code:#include <stdio.h> void display(int a[][4]) { a[0][0]=1; } int main(void) { int a[3][4]; display(a); //this works display(&a[0][0]); //this doesn't work getch(); return 0; }