Skip to content

Initializer List

Top Post on IndiBlogger

0
Initializer List

Let us understand the concept of initializer list in C++ with the help of an example. Consider a class viz. person, which has data members like age, name and employee dataExample #include #include using namespace std;class employeeData { unsigned int m_salary; public: employeeData() { cout

Read this post on allabouttechnologies.co.in


Popular Articles by this blogger