Lecture

C++ Static Variables

Description

This lecture covers the three main uses of static variables in C++. The first use is associated with a local variable, having limited scope and permanent lifetime. The second use is related to a global variable, making it confidential to the module. The third use is linked to an attribute, sharing its value among all instances of a class. Examples and syntax are provided to illustrate each use case.

About this result
This page is automatically generated and may contain information that is not correct, complete, up-to-date, or relevant to your search query. The same applies to every other page on this website. Please make sure to verify the information with EPFL's official sources.