在C中,使用++i和之间有什么区别i++,哪些应该在for循环的增量块中使用?
++i
i++
for
c for-loop pre-increment post-increment
我看过他们在无数块的C#代码都被使用了,我想知道何时使用i++或++i(i为某数量的变量一样int,float,double,等).谁知道这个?
i
int
float
double
c#
c ×1
c# ×1
for-loop ×1
post-increment ×1
pre-increment ×1