- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Global Variables in C++
C++ Global Variables. In this video, you will learn about global and local variable scope. Scope refers to the area where a function or variable is visible and accessible to other code. There are 3 main types of scope:
- Function scope is accessible only within the function.
- Block scope, also known as local scope, is accessible only within the block or inner blocks. Examples of blocks include if/else conditions, for loops, while loops.
- File scope, also known as global scope, is accessible within the entire file. This covers all blocks.
If you need to review these topics:
Functions: https://youtu.be/65PSQUdH5k0
Pass by Value vs Reference: https://youtu.be/77XcoXwoK2c
Const Reference: https://youtu.be/aP_VwBrPrJw
C++ Playlist:
https://www.youtube.com/playlist?list=PLnKe36F30Y4ZDNIOZ51sX25pWKQ1pkpTE
Github Repo for C++ Code:
https://github.com/ImKennyYip/cpp
Install C++ with VS Code:
https://youtu.be/DMWD7wfhgNY
Subscribe for more coding tutorials 😄!
⭐ If you enjoyed the tutorial and would like to support the channel, you can do so here 💖: https://buymeacoffee.com/kennyyipcoding
Видео Global Variables in C++ канала Kenny Yip Coding
- Function scope is accessible only within the function.
- Block scope, also known as local scope, is accessible only within the block or inner blocks. Examples of blocks include if/else conditions, for loops, while loops.
- File scope, also known as global scope, is accessible within the entire file. This covers all blocks.
If you need to review these topics:
Functions: https://youtu.be/65PSQUdH5k0
Pass by Value vs Reference: https://youtu.be/77XcoXwoK2c
Const Reference: https://youtu.be/aP_VwBrPrJw
C++ Playlist:
https://www.youtube.com/playlist?list=PLnKe36F30Y4ZDNIOZ51sX25pWKQ1pkpTE
Github Repo for C++ Code:
https://github.com/ImKennyYip/cpp
Install C++ with VS Code:
https://youtu.be/DMWD7wfhgNY
Subscribe for more coding tutorials 😄!
⭐ If you enjoyed the tutorial and would like to support the channel, you can do so here 💖: https://buymeacoffee.com/kennyyipcoding
Видео Global Variables in C++ канала Kenny Yip Coding
c++ global variables global variables c++ global variables C++ C++ global variables global variables in c++ global variables in C++ global scope c++ c++ global scope C++ local variables c++ local variables global vs local variables c++ c++ global variables vs local variables c++ global vs local variables C++ global variables vs local variables C++ global scope global scope C++ global variables vs local variables c++ global variables vs local variables C++
Комментарии отсутствуют
Информация о видео
14 августа 2024 г. 18:10:46
00:10:48
Другие видео канала




















