In my code, I used pointer array like this.
arr = (int*)malloc(N * sizeof(int));
for (i = 0; i < N; i++)
scanf("%d", (arr + i));
Because pointer arithmetic points address.
But I wonder if it's right to only write (arr+i) without * or &.
What is right?
Please help me.