vector in C

How to implement a vector in C

In my previous article, I explained how to create a dynamic array in C. After reading the post, Many readers requested a guide on implementing a vector in C. A vector is essentially a dynamic array that stores a collection of elements same type in a contiguous memory. It has the ability to resize itself

How to implement a vector in C Read More »

C++ Interview

Constructors in C++ and Its Types

Constructors in C++ are special member functions that are automatically called when a class object is created. They are used to initialize the class objects. The constructor’s name is the same as the class name, and it does not have a return type. If you do not create your own constructor, then the compiler creates

Constructors in C++ and Its Types Read More »