Neeraj Sharma

Neeraj Sharma

Multidimension array in c++

A multidimensional array is an array of arrays. 2-dimensional arrays are the most commonly used. They are used to store elements in a grid. Each element in the grid can be addressed by row and column number. let’s create a…

Binary tree In Kotlin

A binary tree is a tree that includes at most two children, often referred to as the left and right children: Kotlin Implementation  class BinaryNode<T>( val value: T, var left: BinaryNode<T>? = null, var right: BinaryNode<T>? = null ) Binary…

Three ways to terminate c++ program

 There are three methods for terminating a C++ program.  call the exit function call the abort function and the return statement exit function A C++ program is terminated using the exit function, which is defined in <stdlib.h>. As the program’s…