General question

why can’t we use i++ while passing it to a function.
if a function is fun(int a,int i)
then if we have to increase value of i in next call why can,t we do fun(a,i++); we do either ++i or i+1. like if we are storing it somewhere .Only then it causes the difference right?

@nirupama1
i++ means use the initial value of i and then increment it. The next function call would get initial value of i. and then it gets incremented for the existing function call.
++i means increment the inital value of i and then use it.
i+1 means 1 + the initial value of i.
I hope you got your answer.
if not, you can comment below your query.