Consider the below two programs: // Program 1 int main() { int x; int x = 5; printf("%d", x); return 0; } Output in C:… Read More
Tag Archives: cpp-storage-classes
The mutable storage class specifier in C++ (or use of mutable keyword in C++) auto, register, static and extern are the storage class specifiers in C.… Read More
Prerequisite: Static Keyword in C++ An object becomes static when a static keyword is used in its declaration. Static objects are initialized only once and… Read More