Где искать: по сайтам Запорожской области, статьи, видео ролики
пример: покупка автомобиля в Запорожье
In programming, a scope is the area of code where you can access a certain variable in order to read it, change its value, and work with that variable in general.
There are four types of scopes:
- global scope
- local/function scope
- block scope
- nested scope
In this video, I’ll show you examples of each scope and explain the advantages and disadvantages, as well as when to use each variable scope.
???? Download Visual Assist here: https://bit.ly/VisualAssistDownload
(Improves Visual Studio experience by quickly identifying and fixing code errors)
???? Learn how to solve problems and build projects with these Free E-Books ⬇️
C++ Lambdas e-book - free download here: https://bit.ly/freeCppE-Book
Entire Object-Pascal step-by-step guide - free download here: https://bit.ly/FreeObjectPascalEbook
☕ I recently created the option for you to buy me a coffee, so if you enjoy my content and find it useful consider that small gesture of gratitude for all the hard work that I put into these videos. That would mean a lot to me! ❤️❤️❤️
https://bit.ly/CodeBeauty_BuyMeACoffee
Of course, don’t feel pressured if you can’t, I will continue posting free educational content for you nevertheless. ????
Contents:
00:00 - Summary of what you’ll learn in this video
00:31 - What is scope? Types of scopes?
02:28 - Local/function scope w\ examples
06:44 - When to use local scope variables?
08:03 - Global scope w\ examples
11:40 - When to use global scope variables?
13:01 - Block scope w\ examples
16:00 - Nested scope w\ examples
Other courses mentioned in this video:
My top 5 Visual Assist features: https://youtu.be/so1o7AoP49A
Namespaces in programming: https://youtu.be/etQX4Mme2f4
Add me on:
Instagram ???? - https://www.instagram.com/TrueCodeBeauty
Twitter ????- https://twitter.com/TrueCodeBeauty