Điểm khác nhau giữa “++i” and “i++” là gì?

{{FormatNumbertoThousand(model.total_like)}} lượt thích
1.705 lượt xem
C/C++ basic

++i: cộng i lên 1 trước rồi thực hiện phép toán

i++: thực hiện phép toán trước rồi cộng i lên 1

{{login.error}}