У нас вы можете посмотреть бесплатно Is it BETTER to use i++ or ++i? или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Learn the KEY difference between i++ and ++i in Java, C, or C++! You'll also learn when the difference matters versus when you can not worry about it, and we'll answer if it's BETTER to use i++ or ++i. This video explains how i++ differs from ++i in the langauges C++, Java, and C. The ++ operator adds one to a variable, but that's not all it does. We also call these two operators the suffix increment operator and the prefix increment operator. You'll learn how the ++ operator/increment operator works with for loops, while loops, when used inside a mathematical expression, and when by itself. I'm a private computer science tutor with both a master's degree and bachelor's degree in Computer Science. I'm also a certified teacher, and I love helping students score higher and understand code at a deeper level. If you're interested, you can contact me on my website: https://www.codeslatetutoring.com/fro... 00:00 Intro 00:16 Difference between i++ and ++i 01:52 Using increment i++ or ++i in mathematical expression 03:22 Using i++ or ++i in a for loop 04:49 Using i++ or ++i in a while loop 06:18 Summary and edge case of C++ 07:18 C++ special case explained 08:43 Why ++i is preferred 09:43 Conclusion/About me