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 »

batch file for loop

batch file for loop

Like other programing language batch script supports the looping. In this article, I will explain the batch file for the loop and describe some examples of how we can use the batch file for loop in our program. Batch File For Loop Syntax, FOR %%Var_Name in list do iteration_Code   Parameters for the batch script for loop

batch file for loop Read More »

batch file statement

Batch file if else statements

The batch script supports the conditional statements like if, if-else ..etc. In this article, I will discuss how you can use if and else in the batch file. You can see this article, Batch file commands Batch file if statement The if the statement is one of the selection statements. It uses to select statements

Batch file if else statements Read More »