MENU

Fun & Interesting

Local Static in C++

The Cherno 191,739 8 years ago
Video Not Working? Fix It Now

Twitter ► https://twitter.com/thecherno Instagram ► https://instagram.com/thecherno Patreon ► https://patreon.com/thecherno Slack ► https://slack.thecherno.com In this video we take a look at yet another use of the static keyword in C++. Static can be used in a local scope to extend the lifetime of the variable to be essentially endless, rather than getting destroyed when the scope ends. Static in global scope ► https://youtu.be/f3FVU-iwNuA Static in class scope ► https://youtu.be/V-BFlMrBtqQ Series Playlist ► https://www.youtube.com/playlist?list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb BEST laptop for programming! ► http://geni.us/pakTES My FAVOURITE keyboard for programming! ► http://geni.us/zNhB FAVOURITE monitors for programming! ► http://geni.us/Ig6KBq MAIN Camera ► http://geni.us/t6xyDRO MAIN Lens ► http://geni.us/xGoDWT Second Camera ► http://geni.us/CYUQ Microphone ► http://geni.us/wqO6g7K

Comment