Category Archives: C++

Local Classes in C++

A class declared inside a function becomes local to that function and is called Local Class in C++. For example, in the following program, Test… Read More »

Templates and Default Arguments

Default parameters for templates in C++: Like function default arguments, templates can also have default arguments. For example, in the following program, the second parameter… Read More »