jamesjuett / lobster

Interactive Program Visualization Tools
8 stars 3 forks source link

Visualized arrows point to the wrong place for pointers-to-arrays #343

Open jamesjuett opened 1 year ago

jamesjuett commented 1 year ago
int main() {
  int arr[5] = {-1,-7,0,18,2};
  int *ptr = arr + 1;
  int (*ptr2)[5] = &arr;
  int (*ptr3)[5] = &arr+1;
}

image