What is the difference between array[i]++ (increment outside brackets) and array[i++] (increment inside brackets), where the array is an int array[10]?
What is the difference between array[i]++ (increment outside brackets) and array[i++] (increment inside brackets),
Share
Output
a[i]++increments the element at indexi, it doesn’t incrementi. Anda[i++]incrementsi, not the element at indexi.