Mrityudoot
asked
Apr 24, 2023
856
views
For arrays with more given elements than its size, why does doing a[i] print garbage value but *a+i brings the correct value, despite them being the same thing (a[i] = *a+i)int a[ ... , Garbage printf( %d , *a+i; // gives 1, 2, 3, 4}